pub fn pack_flex<Out: Write, T: Pack<Out>>(
val: &[T],
maxsz: Option<usize>,
out: &mut Out,
) -> Result<usize>Expand description
Pack a dynamically sized array, with size limit check.
This packs an array of packable objects, and also applies an optional size limit.