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

Method bit_chunks

arrow-buffer/src/buffer/immutable.rs:351–353  ·  view source on GitHub ↗

Returns a `BitChunks` instance which can be used to iterate over this buffers bits in larger chunks and starting at arbitrary bit offsets. Note that both `offset` and `length` are measured in bits.

(&self, offset: usize, len: usize)

Source from the content-addressed store, hash-verified

349 /// in larger chunks and starting at arbitrary bit offsets.
350 /// Note that both `offset` and `length` are measured in bits.
351 pub fn bit_chunks(&self, offset: usize, len: usize) -> BitChunks<'_> {
352 BitChunks::new(self.as_slice(), offset, len)
353 }
354
355 /// Returns the number of 1-bits in this buffer, starting from `offset` with `length` bits
356 /// inspected. Note that both `offset` and `length` are measured in bits.

Callers 1

bit_sliceMethod · 0.45

Calls 1

as_sliceMethod · 0.45

Tested by

no test coverage detected