DUECA/DUSIME
|
Object to decode a control block. More...
Public Member Functions | |
ControlBlockRead (const char *header) | |
Decode from only the header data, e.g. More... | |
ControlBlockRead (DDFFMessageBuffer &buffer, std::ios::off_type offset) | |
Decode from buffer. More... | |
Public Attributes | |
AmorphReStore | r |
Decoding store; helper object. | |
int64_t | next_offset |
offset of the next block | |
uint16_t | checksum |
checksum | |
uint16_t | stream_id |
stream id | |
uint32_t | block_size |
block size | |
uint32_t | block_fill |
block fill | |
uint32_t | object_offset |
First decodable block. | |
uint32_t | block_num |
block sequence number | |
Object to decode a control block.
The object's members contain the control block information.
ControlBlockRead::ControlBlockRead | ( | const char * | header | ) |
Decode from only the header data, e.g.
when inspecting a file
header | Buffer with header data, minimum size 28 bytes. |
ControlBlockRead::ControlBlockRead | ( | DDFFMessageBuffer & | buffer, |
std::ios::off_type | offset | ||
) |
Decode from buffer.
Throws an exception when the checksum fails.
buffer | Buffer with the data. |
offset | Offset in the file, used to complete the error message on failure. |