|
CX Framework
Cross-platform C utility framework
|
Writes any stype-described value – scalars, containers, structs, and opted-in object classes – to a wire format and reads it back, driven by the same reflection metadata (StructInfo, class metadata) the rest of cx already uses. JSON, a compact binary format, and SSD trees ship as backends; an application can add its own without touching cx.
Key Components:
serWrite() / serRead()SerWriter / SerReader: JSON (JSON Backend), a compact binary format (Binary Backend), and SSD trees (SSD Tree Backend) ship with cx; an application can add its own the same way.STypeInfoExt** - a value's declared, wire-facing type (cx/stype/stype.h); the traverser works from this rather than from a plain stypeStreamBuffer** (Stream Buffers) - the producer/consumer transport that JSON and binary documents stream over, with adapters for strings, buffers, files, and consoles