Create a [`NullBuffer`] from an *unsliced* validity bitmap (`offset = 0` **bits**) of length `len`. Returns `None` if there are no nulls (all values valid).
(buffer: impl Into<Buffer>, len: usize)
| 243 | /// |
| 244 | /// Returns `None` if there are no nulls (all values valid). |
| 245 | pub fn from_unsliced_buffer(buffer: impl Into<Buffer>, len: usize) -> Option<Self> { |
| 246 | let bb = BooleanBuffer::new(buffer.into(), 0, len); |
| 247 | let nb = NullBuffer::new(bb); |
| 248 | (nb.null_count() > 0).then_some(nb) |
| 249 | } |
| 250 | |
| 251 | /// Claim memory used by this null buffer in the provided memory pool. |
| 252 | #[cfg(feature = "pool")] |
nothing calls this directly
no test coverage detected