CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
serbinary.h File Reference

Serialization backend that reads and writes cx's compact binary format. More...

Go to the source code of this file.

Macros

#define SER_BIN_MAGIC   "CXSB"
 Magic at the start of every document, followed by a version byte and a flags byte.
 
#define SER_BIN_VERSION   1
 Format version this build writes. The reader rejects anything it does not know.
 

Enumerations

enum  SerBinHeaderFlagsEnum { SER_BinHdr_SelfDescribing = (1 << 0) , SER_BinHdr_StringDedup = (1 << 1) , SER_BinHdr_Refs = (1 << 2) }
 Header flag bits, recording how the body was encoded. More...
 

Functions

SerWriterserBinaryWriterCreate (StreamBuffer *sb, flags_t flags)
 
SerReader * serBinaryReaderCreate (StreamBuffer *sb, flags_t flags)
 

Detailed Description

Serialization backend that reads and writes cx's compact binary format.

Definition in file serbinary.h.