C4 Engine
C4 Engine API Documentation

Packer::WriteArray

Defined in:  C4Packing.h
Writes an array of objects to the output stream.
Prototype

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

Template Parameters
type The type of the objects in the array.
Parameters
count The number of objects to write.
Description
The WriteArray function writes count objects of the type given by the type template parameter to the output stream, reading them from memory starting at the pointer specified by the array parameter.

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

Packer::WriteData

Unpacker::ReadArray

Unpacker::ReadData