Re-exported from core::raw.
Raw reads over flat buffers.
Functions
raw_get | Element i of the len values at base, bounds-checked: None past len, Some.(value) otherwise. |
raw_byte_at | Byte i of the len bytes at base, bounds-checked: out of range reads come back as 0u8 (NUL) rather than an Option[u8], for scanners whose character-class tests already treat 0u8 as matching nothing. |
Function declarations
fn raw_getsource
forall T where Copy[T], Sized[T].
unsafe fn raw_get(base: *T, len: usize, i: usize) -> Option[T] { ... }
Element i of the len values at base, bounds-checked: None past len, Some.(value) otherwise. Caller: base addresses len initialized Ts, readable for the call.
fn raw_byte_atsource
unsafe fn raw_byte_at(base: *u8, len: usize, i: usize) -> u8 { ... }
Byte i of the len bytes at base, bounds-checked: out of range reads come back as 0u8 (NUL) rather than an Option[u8], for scanners whose character-class tests already treat 0u8 as matching nothing. Caller: base[0..len) is initialized and readable for the call.