cf_snapshot_compress_bound¶
Category: net
GitHub: cute_networking.h
Returns the worst-case output size of cf_snapshot_compress for a size-byte snapshot.
Remarks¶
Exactly size + 1: one flag byte plus, at worst, the raw snapshot (the compressor
falls back to raw storage whenever entropy coding cannot beat it). Allocate this much
and cf_snapshot_compress cannot fail.