Skip to main content

read_words

Function read_words 

Source
pub fn read_words<W: Word, const N: usize>(src: &[u8]) -> [W; N]
Expand description

Reads an array of words from a byte slice

Words are read from src in order, using LE conversion from bytes.

ยงPanics

Panics if size_of_val(src) != size_of::<[W; N]>().