Zen API

- Home
- Topics
- Types
- Files

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

  serializer | Serializer object.
  stream | Stream for reading/writing.
  serializerType | Serializer type (or kNULL for default).
  allocator | Memory allocator (or kNULL for default).

Returns
  Operation status.