Function pack_opaque_array

Source
pub fn pack_opaque_array<Out: Write>(
    val: &[u8],
    sz: usize,
    out: &mut Out,
) -> Result<usize>
Expand description

Pack a fixed-size byte array

As size is fixed, it doesn’t need to be encoded. sz is in bytes (and array elements, which are u8) If the array is too large, it is truncated; if its too small its padded with 0x00.