pub fn frame_bytes(header: &[u8], attachments: &[&[u8]]) -> Result<Vec<u8>>
One frame’s bytes, preamble included, so it is written in one piece.
InvalidInput when the header or the attachments together exceed 4 GiB.
InvalidInput