Skip to content
API REFERENCEUsage guides →

cellpack::scans::pack_chunk ​

fn

Module contract · All interfaces

At a glance ​

pub fn pack_chunk(chunk: &[u8], page: u32, out: &mut [u8]) -> Result<usize>

Page packing of a chunk’s records. Rewrites chunk with its records packed to page-byte pages (see the module docs) into out, which must hold packed_len bytes. Every record then reads ceil(len / page) pages once the chunk is stored at a page-aligned position. Decoding is unchanged. Returns the packed length.

Contract reference ​

See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.

Definition