C4 Engine
C4 Engine API Documentation

Unpacker::ReadArray

Defined in:  C4Packing.h
Reads an array of objects from the input stream.
Prototype

template <typename type> void ReadArray(int32 count, type *array);

Template Parameters
type The type of the objects in the array.
Parameters
count The number of objects to read.
Description
The ReadArray function reads count objects of the type given by the type template parameter from the input stream, writing them to memory starting at the pointer specified by the array parameter.

The quantity count * sizeof(type) must be a multiple of four bytes.
See Also

Unpacker::ReadData

Packer::WriteArray

Packer::WriteData