File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
vortex-array/src/arrays/bool Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments