Appearance
cellpack::scans::decode_csr
Module contract · All interfaces
At a glance
pub fn decode_csr<P: IndptrOut, I: IndexOut>(
meta: &Meta<'_>,
tables: &DecodeTables,
records: &[u8],
rows: Rows<'_>,
space: IdSpace,
indptr: &mut [P],
indices: &mut [I],
values: &mut [u8],
ws: &mut [u64],
) -> Result<u64>Record and chunk decoding: CSR arrays, dense rows and Parts views, plus the workspace sizing those calls need. Decodes the selected cells of a resident chunk into CSR arrays: indptr of rows + 1 entries, indices and values of at least selection_nnz entries. Indices ascend in space within each row. Returns the nnz written.
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.