MCPcopy Create free account
hub / github.com/daniel-e/rustml / from_high_endian

Method from_high_endian

src/datasets.rs:62–65  ·  view source on GitHub ↗
(arr: &[u8])

Source from the content-addressed store, hash-verified

60impl MnistDigits {
61
62 fn from_high_endian(arr: &[u8]) -> u64 {
63
64 arr.iter().fold(0, |acc, val| acc * 256 + (*val as u64))
65 }
66
67 fn read_u32<T: Read>(src: &mut T) -> Result<u32, &'static str> {
68

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected