RenderWare V2.1

Previous Page Index Next Page

RwBool

RwReadStreamChunk(RwStream *stream, RwUInt32 type,
void *data, RwUInt32 flags);

Description

Reads a chunk from a stream

Arguments

stream Stream to read from.

type Type of chunk to be read.

data Chunk type dependent parameter.

flags Chunk type dependent parameter.

Return Value

TRUE on success, FALSE otherwise.

Comments

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.

See Also

RwReadStreamChunkType()

RwWriteStreamChunk()

RwSkipStreamChunk()

RwGetChunkSize()

RwFindStreamChunk()