pub fn write_frame<W: Write>(writer: &mut W, payload: &[u8]) -> Result<()>
Write payload as a single length-prefixed frame: [u32 LE len][bytes].
payload
[u32 LE len][bytes]