fn write_prefix<const MAGIC_LEN: usize, const PAYLOAD_LEN: usize>( buf: &mut [u8; 34], magic: &[u8; MAGIC_LEN], payload: &[u8; PAYLOAD_LEN], ) -> u8