Function flatbuffers::read_scalar_at[][src]

pub unsafe fn read_scalar_at<T: EndianScalar>(s: &[u8], loc: usize) -> T

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

Safety

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