whio  whio_encode

ACHTUNG: AS OF 20110523, THIS PAGE IS NOW MAINTAINED IN THE NEW WIKI: http://whiki.wanderinghorse.net/wikis/whio/?page=whio_encode


Files: whio_encode.h

The whio_encode API contains a number of routines for encoding and decoding binary data (namely integers and C-style strings) in a platform- and endian-neutral format. It does not directly support floating-point numbers (there has been no need for them so far). The encoders add a small amount of consistency-checking data in their output and the decoders check for these. Thus they have some form of consistency checking built in.

These routines are used extensively by various whio_dev-based APIs, which use these codec routines to ensure that their data formats are platform-independent. Examples include whio_epfs, whio_vlbm, whio_udb, and whio_ht.