Skip to main content

decode_index_key_omitting

Function decode_index_key_omitting 

Source
pub fn decode_index_key_omitting(
    permutation: IndexPermutation,
    key: &[u8],
    pattern: &EncodedTriplePattern,
    omitted: u8,
) -> Result<EncodedQuad, StorageError>
Expand description

decode_index_key for a request that may omit slots.

A masked slot is skipped without constructing its term (the width table advances the cursor) and restored with omitted_slot_term. This is the in-process twin of waratah_proto::quad_from_proto_omitting: one rule, two transports, so the wire and in-process paths cannot disagree.