Appends a boolean slice into the builder to indicate the validations of these items.
(&mut self, slice: &[bool])
| 179 | /// Appends a boolean slice into the builder |
| 180 | /// to indicate the validations of these items. |
| 181 | pub fn append_slice(&mut self, slice: &[bool]) { |
| 182 | if slice.iter().any(|v| !v) { |
| 183 | self.materialize_if_needed() |
| 184 | } |
| 185 | if let Some(buf) = self.bitmap_builder.as_mut() { |
| 186 | buf.append_slice(slice) |
| 187 | } else { |
| 188 | self.len += slice.len(); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | /// Append [`NullBuffer`] to this [`NullBufferBuilder`] |
| 193 | /// |