Function flatbuffers::read_scalar

source ·
pub unsafe fn read_scalar<T: EndianScalar>(s: &[u8]) -> T
Expand description

Read an EndianScalar from the provided byte slice. Performs endian conversion, if necessary.

§Safety

Caller must ensure s.len() > size_of::<T>().