pub fn marshal(bytes: &mut Vec<u8>, header: OfpHeader) {
        bytes.write_u8(header.version()).unwrap();
        bytes.write_u8(header.type_code() as u8).unwrap();
        bytes.write_u16::<BigEndian>(header.length() as u16).unwrap();
        bytes.write_u32::<BigEndian>(header.xid()).unwrap();
    }
/// Fills a message buffer with the header fields of an `OfpHeader`.
Fills a message buffer with the header fields of an `OfpHeader`.
Fills a message buffer with the header fields of an ` OfpHeader ` .
pub fn marshal(bytes: &mut Vec<u8>, header: OfpHeader) {
        bytes.write_u8(header.version()).unwrap();
        bytes.write_u8(header.type_code() as u8).unwrap();
        bytes.write_u16::<BigEndian>(header.length() as u16).unwrap();
        bytes.write_u32::<BigEndian>(header.xid()).unwrap();
    }
pub fn marshal ( bytes : & mut Vec < u8 > , header : OfpHeader ) { bytes . write_u8 ( header . version ( ) ) . unwrap ( ) ; bytes . write_u8 ( header . type_code ( ) as u8 ) . unwrap ( ) ; bytes . write_u16 :: < BigEndian > ( header . length ( ) as u16 ) . unwrap ( ) ; bytes . write_u32 :: < BigEndian > ( header . xid ( ) ) . unwrap ( ) ; }
Fills a message buffer with the header fields of an `OfpHeader`.
Fills a message buffer with the header fields of an ` OfpHeader ` .
bytes
&mut Vec<u8>
header
OfpHeader
bytes
&mut Vec<u8>
header
OfpHeader