pub fn write_len(out: &mut Vec<u8>, len: usize) -> Result<(), WireError>Expand description
Append len as a four-byte little-endian u32.
Returns LengthOverflow without changing out if len exceeds u32::MAX.
The result can be read with WireCursor::read_len.