Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kSerializer_SetEndianness | ( | kSerializer | serializer,
|  | kEndianness | endianness
| ) |  |

Explicitly sets the endianness (byte ordering) of encoded/decoded values.

The default endianness for kSerializer is kENDIANNESS_LITTLE. This value can be overridden by derived classes, or set explicitly for customer parser/formatters.

Parameters

  serializer | Serializer object.
  endianness | Endianess for encoded/decoded values.

Returns
  Operation status.