• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vortex-data / vortex / 16979224669

14 Aug 2025 11:42PM UTC coverage: 23.728%. First build
16979224669

Pull #2456

github

web-flow
Merge 30049dfa7 into aaf3e36ad
Pull Request #2456: feat: basic BoolBuffer / BoolBufferMut

68 of 1065 new or added lines in 82 files covered. (6.38%)

8616 of 36312 relevant lines covered (23.73%)

146.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

42.86
/vortex-buffer/src/bit/mod.rs
1
//! Packed bitmaps that can be used to store boolean values.
2
//!
3
//! This module provides a wrapper on top of the `Buffer` type to store mutable and immutable
4
//! bitsets. The bitsets are stored in little-endian order, meaning that the least significant bit
5
//! of the first byte is the first bit in the bitset.
6
mod aligned;
7
#[cfg(feature = "arrow")]
8
mod arrow;
9
mod buf;
10
mod buf_mut;
11
mod ops;
12
mod unaligned;
13

14
pub use aligned::BitChunks;
15
pub use buf::*;
16
pub use buf_mut::*;
17

18
/// Get bit value at `index` out of `buf`
19
#[inline]
20
pub fn get_bit(buf: &[u8], index: usize) -> bool {
478✔
21
    buf[index / 8] & (1 << (index % 8)) != 0
478✔
22
}
478✔
23

24
/// Get bit value at `index` out of `buf` without bounds checking
25
///
26
/// # Safety
27
/// `index` must be between 0 and length of `buf`
28
#[inline]
NEW
29
pub unsafe fn get_bit_unchecked(buf: &[u8], index: usize) -> bool {
×
NEW
30
    let byte = unsafe { buf.get_unchecked(index / 8) };
×
NEW
31
    byte & (1 << (index % 8)) != 0
×
NEW
32
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc