Skip to content
API REFERENCEUsage guides →

cellpack::format::cpk::ChunkEntry ​

struct

Module contract · All interfaces

At a glance ​

pub struct ChunkEntry {
    pub first_row: u64,
    pub offset: u64,
    pub len: u64,
    pub meta_len: u64,
    pub n_rows: u32,
}

One chunk: rows first_row..first_row + n_rows at offset, len bytes of which the first meta_len are its metadata.

Fields and variants ​

first_row ​

first_row: u64

First row of the chunk in the matrix; chunks tile 0..n_rows in order.

offset ​

offset: u64

Byte offset of the chunk from the start of the file, a multiple of the page size.

len ​

len: u64

Bytes of the whole chunk: metadata, padding and records.

meta_len ​

meta_len: u64

Leading bytes of the chunk that are its metadata (len includes them).

n_rows ​

n_rows: u32

Rows in this chunk, n_cells of its metadata.

Implemented traits ​

impl Clone for ChunkEntry
impl Debug for ChunkEntry

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