void *data, RwUInt32 flags);
Reads a chunk from a stream
stream Stream to read from.
type Type of chunk to be read.
data Chunk type dependent parameter.
flags Chunk type dependent parameter.
TRUE on success, FALSE otherwise.
Before a chunk is read it is essential that the chunk type has been read from the stream. Therefore the usual mode of operation is to open a stream (assuming it only contains chunks). Read the chunk type - if it isn't the chunk required skip it. If it is the required chunk then read it using this function. Repeat until all required chunks have been read.