|
LibCppBinary
Modern cross-platform C++ binary parsing library
|
Represents the header of a binary data chunk. More...
#include <ChunkHeader.h>
Public Member Functions | |
| std::vector< DataField * > | Fields () override |
| Provides a vector of raw pointers to the structure's fields. | |
| std::vector< const DataField * > | Fields () const override |
| Provides a vector of raw pointers to the structure's fields. | |
| size_t | Size () const override |
| Gets the total size of all fields in the structure. | |
| ChunkHeader & | operator= (const ChunkHeader &other) |
| Assignment operator for ChunkHeader. | |
Public Attributes | |
| StringField | id { chunkIDSize } |
| The ID of the chunk. | |
| UInt32Field | dataSize |
| The size of the chunk's data. | |
Represents the header of a binary data chunk.
|
overridevirtual |
Provides a vector of raw pointers to the structure's fields.
This method is primarily intended for use by Binary::Stream and its derivatives for reading the fields from and to those streams. Access the fields directly rather than via this method.
Implements Binary::DataStructure.
|
overridevirtual |
Provides a vector of raw pointers to the structure's fields.
This method is primarily intended for use by Binary::Stream and its derivatives for reading the fields from and to those streams. Access the fields directly rather than via this method.
Implements Binary::DataStructure.
| ChunkHeader & Binary::ChunkHeader::operator= | ( | const ChunkHeader & | other | ) |
Assignment operator for ChunkHeader.
Copies the values of all fields from another ChunkHeader instance.
| other | The ChunkHeader to copy from. |
|
overridevirtual |
Gets the total size of all fields in the structure.
Implements Binary::DataStructure.
| UInt32Field Binary::ChunkHeader::dataSize |
The size of the chunk's data.
| StringField Binary::ChunkHeader::id { chunkIDSize } |
The ID of the chunk.