[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

To read data from a chunk, use the functions ReadChunkBytes() and
ReadChunkRecords().  Both calls truncate attempts to read past the end of
a chunk.  For odd-length chunks, the parser will skip over the pad bytes
for you.  Remember that for chunks which have been gathered using
PropChunk() (or CollectionChunk() ), you may directly reference the data
by using FindProp() (or FindCollection() ) to get a pointer to the data.
ReadChunkBytes() is commonly used when loading and decompressing bitmap
and sound sample data or sequentially reading in data chunks such as FTXT
CHRS text chunks.  See the code listing ClipFTXT.c for an example usage of