DUECA/DUSIME
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ControlBlockRead Struct Reference

Object to decode a control block. More...

#include <ControlBlock.hxx>

Public Member Functions

 ControlBlockRead (const char *header)
 Decode from only the header data, e.g.
 
 ControlBlockRead (DDFFMessageBuffer &buffer, std::ios::off_type offset)
 Decode from buffer.
 

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
 

Detailed Description

Object to decode a control block.

The object's members contain the control block information.

Constructor & Destructor Documentation

◆ ControlBlockRead() [1/2]

ControlBlockRead::ControlBlockRead ( const char * header)

Decode from only the header data, e.g.

when inspecting a file

Parameters
headerBuffer with header data, minimum size 28 bytes.

◆ ControlBlockRead() [2/2]

ControlBlockRead::ControlBlockRead ( DDFFMessageBuffer & buffer,
std::ios::off_type offset )

Decode from buffer.

Throws an exception when the checksum fails.

Parameters
bufferBuffer with the data.
offsetOffset in the file, used to complete the error message on failure.

The documentation for this struct was generated from the following file: