Function bip_util::convert::bytes_be_to_port [] [src]

pub fn bytes_be_to_port(bytes: [u8; 2]) -> u16

Convert an array of 2 bytes big endian to a port.