RenderWare V2.1

Previous Page Index Next Page

RwUInt32

RwGetChunkSize(RwUInt32 type, void *data,RwUInt32 flags);

Description

Finds the size in bytes of a RenderWare chunk.

Arguments

type Chunk type.

data Chunk type dependent parameter.

flags Chunk type dependent parameter.

Return Value

Size of the chunk in bytes. 0 on error.

Comments

This function should be used if you wish to embed RenderWare chunks within your own chunks. In particular it is very useful for finding the size of your chunk in total (which is required for writing a chunk start mark).

See Also

RwReadStreamChunkType()

RwReadStreamChunk()

RwWriteStreamChunk()

RwFindStreamChunk()

RwSkipStreamChunk()