C4 Engine
C4 Engine API Documentation

Unpacker::ReadData

Defined in:  C4Packing.h
Reads arbitrary data from the input stream.
Prototype

void ReadData(void *data, uint32 size);

Parameters
data A pointer to the storage buffer for the data.
Description
The ReadData function reads size bytes of data from the input stream, writing them to memory starting at the pointer specified by the data parameter.

The value of the size parameter must be a multiple of four bytes.
See Also

Unacker::ReadArray

Packer::WriteData

Packer::WriteArray