Return the allocated size of this builder, in bytes, useful for memory accounting.
(&self)
| 252 | |
| 253 | /// Return the allocated size of this builder, in bytes, useful for memory accounting. |
| 254 | pub fn allocated_size(&self) -> usize { |
| 255 | self.bitmap_builder |
| 256 | .as_ref() |
| 257 | .map(|b| b.capacity() / 8) |
| 258 | .unwrap_or(0) |
| 259 | } |
| 260 | |
| 261 | /// Return the number of bits in the buffer. |
| 262 | pub fn len(&self) -> usize { |