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

Method capacity

arrow-buffer/src/buffer/mutable.rs:497–499  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

495 /// The invariant `buffer.len() <= buffer.capacity()` is always upheld.
496 #[inline]
497 pub const fn capacity(&self) -> usize {
498 self.layout.size()
499 }
500
501 /// Clear all existing data from this buffer.
502 pub fn clear(&mut self) {

Callers 5

claimMethod · 0.45
fromMethod · 0.45
from_iterMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by 2