Skip to main content

pack_sensing_index_field

Function pack_sensing_index_field 

Source
pub fn pack_sensing_index_field(
    container_id: [u8; 16],
    index_field_id: u64,
    extension_kind: u16,
    raw_field_prefix: &[u8],
    records: &[MeasurementRecord],
    output: &mut [u8],
) -> Result<PackedSensingIndex, SensingContainerError>
Expand description

Append canonical index rows to an unchanged raw FieldSidecar prefix. output is caller-owned. All refusals precede output modification. Raw FieldSidecar references must remain entirely inside the prefix; references to other sections require validation by the enclosing container writer. This function does not assign or authenticate the container identifier.