Called to save the current
chunk data into a stream.
function SaveToStream(Stream: TStream): Boolean;
Description
This method should write the entire chunk into the stream. The first part
is the chunk length which is a network ordered cardinal, followed by the
chunk name which is a 4 byte string. Then it is followed by the actual
data and then a network ordered cardinal with the crc for the chunk name
and for the data.
A easy
way to handle is changing the data using Data
and ResizeData and then calling
inherited SaveToStream. This way will write everything and calculate the
crc.