Function flatbuffers::emplace_scalar [−][src]
pub unsafe fn emplace_scalar<T: EndianScalar>(s: &mut [u8], x: T)
Expand description
Place an EndianScalar into the provided mutable byte slice. Performs endian conversion, if necessary.
Safety
Caller must ensure s.len() > size_of::<T>()
and x
does not overlap with s
.