Zen API | Contents | Reference | Previous | Up | Next

zSerializer_Construct
zSerializer functions
C

    zStatus zSerializer_Construct(zSerializer* serializer, zSerializerReadCallback read, zSerializerWriteCallback write, zHandle context);

Parameters

Parameters | Description
zSerializer* serializer | Destination for the constructed object handle.
zSerializerReadCallback read | A callback function that will be used by the zSerializer object to read bytes, or zNULL if reading is not required.
zSerializerWriteCallback write | A callback function that will be used by the zSerializer object to write bytes, or zNULL if writing is not required.
zHandle context | A context object that will be passed to the read and/or write callback functions (typically a zTcpClient or zUdpClient handle).

Description

Constructs a zSerializer object that can be used to write/read values as little-endian-formatted bytes.

File

zSerializer.h

Copyright (c) 2008-2010 by LMI Technologies Inc. All rights reserved.
Contents | Reference