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

The write half of the serialization backend interface. More...

Go to the source code of this file.

Data Structures

struct  SerWriterOps
 
struct  SerWriter
 

Macros

#define serWriterCaps(w)   ((w)->caps)
 
#define serWriterCan(w, capname)   (((w)->caps & SER_Cap_##capname) != 0)
 
#define serWrite(w, type, val)   _serWrite(w, stExt(type), stArg(type, val))
 

Typedefs

typedef struct SerWriter SerWriter
 
typedef struct SerWriterOps SerWriterOps
 

Functions

SerWriter_serWriterAlloc (size_t size, const SerWriterOps *ops, flags_t caps, flags_t flags)
 
bool serWriterFinish (SerWriter *w)
 
void serWriterDestroy (SerWriter **w)
 
bool serWriterFail (SerWriter *w, int32 code, strref msg)
 

Detailed Description

The write half of the serialization backend interface.

Definition in file serwriter.h.