logos.mem.writ.wbs
Module mem · package logos-mem
Functions
fnwbs_read
fn wbs_read(h: &Writ, data: *const u8, len: i64) -> WAny
Reconstructs a document from len bytes at data into arena h, returning the
root WAny (new strings/arrays/maps allocated in h).
Returns a null WAny on a truncated/malformed stream instead of reading OOB.
fnwbs_write
fn wbs_write(v: WAny) -> Vec<u8>
Serializes v (and its transitive references) to a fresh byte buffer.