Function flatbuffers::read_scalar [−][src]
pub unsafe fn read_scalar<T: EndianScalar>(s: &[u8]) -> T
Read an EndianScalar from the provided byte slice. Performs endian conversion, if necessary.
Safety
Caller must ensure s.len() > size_of::<T>()
.