Skip to content
API REFERENCEUsage guides →

cellpack::scans::encode_chunk ​

fn

Module contract · All interfaces

At a glance ​

pub fn encode_chunk<'a>(
    src: impl Into<MatrixRef<'a>>,
    rows: Rows<'_>,
    opt: &EncodeOptions,
    out: &mut [u8],
    ws: &mut [u64],
) -> Result<usize>

Chunk and record encoding, the reusable PreparedEncoder, and the output and workspace bounds of both. Encodes the selected rows as one chunk into out (at least chunk_bound bytes) with ws of chunk_workspace_words words. Returns the chunk 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