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

Function get_bit_raw

arrow-buffer/src/util/bit_util.rs:51–53  ·  view source on GitHub ↗
(data: *const u8, i: usize)

Source from the content-addressed store, hash-verified

49/// responsible to guarantee that `i` is within bounds.
50#[inline]
51pub unsafe fn get_bit_raw(data: *const u8, i: usize) -> bool {
52 unsafe { (*data.add(i / 8) & (1 << (i % 8))) != 0 }
53}
54
55/// Sets bit at position `i` for `data` to 1
56#[inline]

Callers 4

value_uncheckedMethod · 0.85
nextMethod · 0.85
next_backMethod · 0.85
filter_bitsFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected