MCPcopy Create free account
hub / github.com/docknetwork/crypto / le_bytes_iter

Function le_bytes_iter

utils/src/misc.rs:76–78  ·  view source on GitHub ↗

Produces an iterator emitting `n` items `u32::to_le_bytes` of the counter starting from zero.

(n: u32)

Source from the content-addressed store, hash-verified

74
75/// Produces an iterator emitting `n` items `u32::to_le_bytes` of the counter starting from zero.
76pub fn le_bytes_iter(n: u32) -> impl_indexed_iter!(<Item = [u8; 4]>) {
77 cfg_into_iter!(0..n).map(u32::to_le_bytes)
78}
79
80/// Produces an iterator of little endian bytes of each element contained in the range `counter_range`
81pub fn le_bytes_iter_from_given_range(

Callers 2

hash_to_field_manyFunction · 0.85
challengesMethod · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected