Skip to main content

decode_temporal_posting_value

Function decode_temporal_posting_value 

Source
pub fn decode_temporal_posting_value(
    value: &[u8],
) -> Result<(StorageOp, VisibilityLabel, i128, i128), StorageError>
Expand description

Decode one temporal-index posting value: op(u8) ‖ visibility(u32 BE) ‖ begin(i128 BE) ‖ end(i128 BE) — 37 bytes.

A value shorter than the fixed body cannot come from our writer (every write path stores complete postings), so truncation is corruption and returns StorageError::Corrupt instead of panicking on a slice.