Defined in:Begins measuring the size of a section of the output stream.
BeginSectionfunction reserves four bytes in the output stream to which a size is later written, and it returns a handle that should be passed to the
Packer::EndSectionfunction. When the
EndSectionfunction is called, the number of bytes written to the output stream since the matching call to
BeginSectionis written into the four-byte location that was initially reserved. When unpacking, this four-byte value must be read before any of the data packed between the calls to
IMPORTANT. In order to maintain four-byte alignment in the output stream, the number of bytes written between calls to the
EndSectionfunction must be a multiple of four.