Struct defining the block header in the tdr file.
More...
#include <ebyedataheader.hpp>
|
|
char | id [8] |
| |
|
uint32_t | sequence |
| |
|
uint16_t | stream |
| |
|
uint16_t | tape |
| |
|
uint16_t | myEndian |
| |
|
uint16_t | dataEndian |
| |
|
uint32_t | dataLen |
| |
Struct defining the block header in the tdr file.
◆ createFromMemory()
| static ebyedataheader_t pottu::ebyedataheader_t::createFromMemory |
( |
const char * |
p | ) |
|
|
inlinestaticnoexcept |
Creates ebyedataheader_t from a memory buffer.
- Parameters
-
| p | Pointer to memory of containing 24 bytes required by the header. |
- Returns
- ebyedataheader_t filled with values read from the buffer.
24 bytes of memory pointed by p must not overlap with memory of this structure.
◆ isValid()
| bool pottu::ebyedataheader_t::isValid |
( |
| ) |
const |
|
inlinenoexcept |
Checks that header is valid-.
- Returns
- true if valid
Checks that the stream, tape, myEndian and dataEndian fields all are having value 1 and the id contains EBYEDATA.
The documentation for this struct was generated from the following file: