Skip to main content

write_pair

Function write_pair 

Source
pub fn write_pair(out: &mut [u8], hi: u64, lo: u32)
Expand description

Encodes the composite key (hi, lo) big-endian into the first 12 bytes of out (hi first — it is the more significant component).

This is the layout of e.g. the temporal index key [recorded_at: u64 | fact_id: u32].

§Panics

Panics if out.len() < 12.