Function read_datum

Source
pub unsafe fn read_datum<'a>(data: &mut &'a [u8]) -> Datum<'a>
Expand description

Read a datum starting at byte offset.

Updates offset to point to the first byte after the end of the read region.

ยงSafety

This function is safe if a Datum was previously written at this offset by push_datum. Otherwise it could return invalid values, which is Undefined Behavior.