[][src]Function bitcoin_num::endian::slice_to_u16_le

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

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