C4 Engine
C4 Engine API Documentation

Packer::EndChunk

Defined in:  C4Packing.h
Ends measuring the size of a chunk in the output stream.
Prototype

void EndChunk(PackHandle handle);

Parameters
handle A handle that was returned by a previous call to the Packer::BeginChunk function.
Description
The EndChunk function causes the size of the data packed since the corresponding call to the Packer::BeginChunk function (the one that returned the handle parameter) to be written at the location reserved after the chunk type when the BeginChunk function was called.
IMPORTANT. In order to maintain four-byte alignment in the output stream, the number of bytes written between calls to the BeginChunk and EndChunk function must be a multiple of four.
See Also

Packer::BeginChunk

ChunkHeader