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)
| 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. |