We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d465b8 commit 78bda14Copy full SHA for 78bda14
arrow-array/src/builder/boolean_builder.rs
@@ -166,6 +166,14 @@ impl BooleanBuilder {
166
BooleanArray::from(array_data)
167
}
168
169
+ /// Returns the current values buffer as a slice
170
+ ///
171
+ /// Boolean values are bit-packed into bytes. To extract the i-th boolean
172
+ /// from the bytes, you can use `arrow_buffer::bit_util::get_bit()`.
173
+ pub fn values_slice(&self) -> &[u8] {
174
+ self.values_builder.as_slice()
175
+ }
176
+
177
/// Returns the current null buffer as a slice
178
pub fn validity_slice(&self) -> Option<&[u8]> {
179
self.null_buffer_builder.as_slice()
0 commit comments