Skip to main content

term_width_at

Function term_width_at 

Source
pub fn term_width_at(key: &[u8], offset: usize) -> Result<usize, StorageError>
Expand description

Total encoded width of the term starting at key[offset] (type byte included).

Width-table walk primitive for locating slot offsets inside hexastore keys. Returns StorageError::Corrupt when off is past the end of key or the type byte is unknown / reserved ([TYPE_TRIPLE], RDF-star, not yet implemented — see appendix D2).

Called one to three times per walked row by the head scans, so the table lookup stays inlinable across the crate’s codegen units.