Header type enumerator
Calculates the CRC32 value of the header elements after crc32.
Returns the header data of this instance.
Returns the header data of tihs instance without the leading chunk length value.
Checks whether the chunk_length member is correct for the given chunk.
Reads the header from chunk and sets the members of this instance to the values contained in the header.
Reads chunk which is expected to be a Start chunk or a Null chunk.
Sets the internal data members from the given chunk.
Sets this instance to create a Start header. Since a Start chunk has no payload, the returned data are a full Start chunk.
Sets this instance to create a Stop header. Since a Stop chunk has no payload, the returned data are a full Start chunk.
Checks whather chunk is valid or not. If it is valid this object's data members are initialised with the chunk header info.
Checks whether chunk is a Start / Null chunk. This data members are set from the chunk provided.
Checks whether chunk is a Stop / Null chunk. This data members are set from the chunk provided.
Sets this instance to create a header for a chunk containing uncompressed data. Compression method is set to None.
Writes the header to chunk[0 .. this.read_length].
Error message source constant
Checks whether chunk is a Null chunk, that is, it has a Null header. A Null header is defined as
Total data length of the members of this structure. With "align (1)" as structure definition attribute "length" equals the "sizeof" value since the member data are then packed without padding. Because this structure represents the LZO chunk header data elements, "length" must equal "sizeof" in order to generate the correct LZO chunk header by serializing an instance of this structure. Hence "length == sizeof" is checked at ccompile-time in write().
Strips the header from chunk
Length of the chunk excluding this length value
Chunk type (Type enumerator is defined below)
Length of uncompressed data
LzoHeader structure