Function flatbuffers::emplace_scalar_array

source ·
pub unsafe fn emplace_scalar_array<T: EndianScalar, const N: usize>(
    buf: &mut [u8],
    loc: usize,
    src: &[T; N]
)
Expand description

Place an array of EndianScalar into the provided mutable byte slice. Performs endian conversion, if necessary.

§Safety

Caller must ensure s.len() >= size_of::<[T; N]>()