Zen API
|
kStatus kSerializer_Construct | ( | kSerializer * | serializer, |
kStream | stream, | ||
kType | serializerType, | ||
kAlloc | allocator | ||
) |
Constructs a serializer object using the specified serialization format.
This method is a factory constructor; the type of serializer to be instantiated is provided as an argument. If no serializer type is provided, the default serializer will be used (currently kSerializer).
serializer | Serializer object. |
stream | Stream for reading/writing. |
serializerType | Serializer type (or kNULL for default). |
allocator | Memory allocator (or kNULL for default). |