Skip to main content

add_slice_as_le_u16

Function add_slice_as_le_u16 

Source
fn add_slice_as_le_u16(slice: &[u8]) -> u64
Expand description

Treating slice as a sequence of little-endian 2-byte words, add them into a u64.

ยงPanics

Panics if slice is not even in size.