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

Method capacity

arrow-buffer/src/bytes.rs:106–113  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

104 }
105
106 pub fn capacity(&self) -> usize {
107 match self.deallocation {
108 Deallocation::Standard(layout) => layout.size(),
109 // we only know the size of the custom allocation
110 // its underlying capacity might be larger
111 Deallocation::Custom(_, size) => size,
112 }
113 }
114
115 /// Register this [`Bytes`] with the provided [`MemoryPool`], replacing any prior reservation.
116 #[cfg(feature = "pool")]

Callers 15

sizeMethod · 0.45
claimMethod · 0.45
sizeMethod · 0.45
decodeFunction · 0.45
expect_buffer_layoutFunction · 0.45
take_fixed_sizeFunction · 0.45
ensure_capacityMethod · 0.45
ensure_capacityMethod · 0.45
set_sourceMethod · 0.45
estimated_memory_sizeMethod · 0.45
estimated_memory_sizeMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected