Appearance
cellpack::scans::PagedRecord
Module contract · All interfaces
At a glance
pub struct PagedRecord<'a> {
pub pages: &'a [&'a [u8]],
pub page_size: usize,
pub start: usize,
pub len: usize,
}Borrowed inputs, selections and encoding options. A record held in caller pages: len bytes starting start bytes into the first of pages, each page_size bytes long (the last may be shorter if the record ends inside it).
Fields and variants
pages
pages: &'a [&'a [u8]]Pages the record spans, in file order.
page_size
page_size: usizePage size the record was packed for; only the last page may be shorter.
start
start: usizeByte offset of the record’s first byte in the first page.
len
len: usizeBytes from start on, across the pages.
Implemented traits
impl<'a> Clone for PagedRecord<'a>impl<'a> Debug for PagedRecord<'a>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.