Struct arrow_buffer::bit_chunk_iterator::BitChunks
source · pub struct BitChunks<'a> { /* private fields */ }
Expand description
Iterates over an arbitrarily aligned byte buffer
Yields an iterator of u64, and a remainder. The first byte in the buffer will be the least significant byte in output u64
Implementations§
source§impl<'a> BitChunks<'a>
impl<'a> BitChunks<'a>
sourcepub const fn remainder_len(&self) -> usize
pub const fn remainder_len(&self) -> usize
Returns the number of remaining bits, guaranteed to be between 0 and 63 (inclusive)
sourcepub fn remainder_bits(&self) -> u64
pub fn remainder_bits(&self) -> u64
Returns the bitmask of remaining bits
sourcepub const fn iter(&self) -> BitChunkIterator<'a> ⓘ
pub const fn iter(&self) -> BitChunkIterator<'a> ⓘ
Returns an iterator over chunks of 64 bits represented as an u64