pub fn serialize_into_slice<T: NsonSerialize + ?Sized>(
output: &mut [u8],
value: &T,
) -> Result<usize>Expand description
Serializes into a caller-owned slice without codec-owned heap allocation.
Returns the initialized byte count. Error::BufferTooSmall contains the
exact required capacity when output is undersized. User-defined
nextjson::NsonSerialize implementations remain responsible for their own
allocations.