pub struct IndexedSection<'a> {
pub base: usize,
pub entity_index_offset: usize,
pub object_id_table_offset: usize,
pub types: Vec<TypeDefinition<'a>>,
pub fields: Vec<FieldDefinition<'a>>,
pub control: Option<EntityRecord<'a>>,
pub column_storage: Option<&'a [u8]>,
pub records: Vec<EntityRecord<'a>>,
}Expand description
One validated external entity-index/object-id-table pair.
Fields§
§base: usizeSelf-anchored base used by every entity-index offset.
entity_index_offset: usizeAbsolute offset of the entity-index array.
object_id_table_offset: usizeAbsolute offset of the object-id table or offset-only identity metadata.
types: Vec<TypeDefinition<'a>>Length-framed class definitions preceding the entity index.
fields: Vec<FieldDefinition<'a>>Length-framed member definitions preceding the entity index.
control: Option<EntityRecord<'a>>Store-level control block bounded by slot zero in an offset-only index.
column_storage: Option<&'a [u8]>Contiguous column-storage region after the control block.
Present only for an offset-only store. Physical block boundaries do not delimit logical field lanes within this region.
records: Vec<EntityRecord<'a>>Entity records following the reserved zero-offset slot.
Implementations§
Source§impl<'a> IndexedSection<'a>
impl<'a> IndexedSection<'a>
Sourcepub const fn base_offset(&self) -> usize
pub const fn base_offset(&self) -> usize
Return the section base used by its external record offsets.
Sourcepub fn numeric_expressions(&self) -> Vec<NumericExpression<'a>>
pub fn numeric_expressions(&self) -> Vec<NumericExpression<'a>>
Decode explicit numeric-expression text within bounded entity records.
Sourcepub fn numeric_expression_records(&self) -> Vec<(usize, NumericExpression<'a>)>
pub fn numeric_expression_records(&self) -> Vec<(usize, NumericExpression<'a>)>
Decode expressions together with their owning record ordinal.
Sourcepub fn string_values(&self) -> Vec<(usize, usize, Option<u32>, StringValue<'a>)>
pub fn string_values(&self) -> Vec<(usize, usize, Option<u32>, StringValue<'a>)>
Decode every strictly framed printable string in each bounded record.
Sourcepub fn references(&self) -> Vec<(usize, usize, Option<u32>, ReferenceValue)>
pub fn references(&self) -> Vec<(usize, usize, Option<u32>, ReferenceValue)>
Decode tagged cross-record references from every bounded record.
Trait Implementations§
Source§impl<'a> Clone for IndexedSection<'a>
impl<'a> Clone for IndexedSection<'a>
Source§fn clone(&self) -> IndexedSection<'a>
fn clone(&self) -> IndexedSection<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more