MCPcopy Create free account
hub / github.com/apache/arrow-rs / read_u64

Function read_u64

arrow-buffer/src/util/bit_chunk_iterator.rs:180–185  ·  view source on GitHub ↗
(input: &[u8])

Source from the content-addressed store, hash-verified

178
179#[inline]
180fn read_u64(input: &[u8]) -> u64 {
181 let len = input.len().min(8);
182 let mut buf = [0_u8; 8];
183 buf[..len].copy_from_slice(input);
184 u64::from_le_bytes(buf)
185}
186
187#[inline]
188fn compute_prefix_mask(lead_padding: usize) -> u64 {

Callers 1

newMethod · 0.70

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected