MCPcopy Create free account
hub / github.com/apache/arrow-rs / allocated_size

Method allocated_size

arrow-buffer/src/builder/null.rs:254–259  ·  view source on GitHub ↗

Return the allocated size of this builder, in bytes, useful for memory accounting.

(&self)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.45
capacityMethod · 0.45

Tested by

no test coverage detected