Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
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).

Parameters
serializerSerializer object.
streamStream for reading/writing.
serializerTypeSerializer type (or kNULL for default).
allocatorMemory allocator (or kNULL for default).
Returns
Operation status.