Skip to content

Commit beeca66

Browse files
committed
BoolArray::new
Signed-off-by: Nicholas Gates <[email protected]>
1 parent 6208064 commit beeca66

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

vortex-array/src/arrays/bool/array.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,9 @@ impl BoolArray {
8484

8585
/// Creates a new [`BoolArray`] without validation from these components:
8686
///
87-
/// * `buffer` is a raw [`ByteBuffer`] holding the packed bits.
88-
/// * `offset` is the number of bits in the start of the buffer that should be skipped when
89-
/// looking up the i-th value.
90-
/// * `len` is the length of the array, which should correspond to the number of bits.
91-
/// * `validity` holds the null values.
92-
///
9387
/// # Safety
9488
///
95-
/// The caller must ensure all of the following invariants are satisfied:
96-
///
97-
/// - `buffer` must contain at least `(offset + len).div_ceil(8)` bytes.
98-
/// - `offset` must be less than 8 (it represents the bit offset within the first byte).
99-
/// - If `validity` is `Validity::Array`, its length must exactly equal `len`.
89+
/// The caller must ensure that the validity length is equal to the bit buffer length.
10090
pub unsafe fn new_unchecked(bits: BitBuffer, validity: Validity) -> Self {
10191
if cfg!(debug_assertions) {
10292
Self::new(bits, validity)

0 commit comments

Comments
 (0)