[][src]Function bitcoin_num::endian::slice_to_u16_be

pub fn slice_to_u16_be(slice: &[u8]) -> u16

Converts &[u8] slice in big endian encoding (most significant byte first) into u16. Panics if the slice length is not equal to the size of the type