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

Method claim

arrow-buffer/src/buffer/mutable.rs:847–849  ·  view source on GitHub ↗
(&self, pool: &dyn MemoryPool)

Source from the content-addressed store, hash-verified

845 /// multiple arrays.
846 #[cfg(feature = "pool")]
847 pub fn claim(&self, pool: &dyn MemoryPool) {
848 *self.reservation.lock().unwrap() = Some(pool.reserve(self.capacity()));
849 }
850}
851
852/// Creates a non-null pointer with alignment of [`ALIGNMENT`]

Callers 4

test_truncate_with_poolFunction · 0.45
test_resize_with_poolFunction · 0.45

Calls 2

reserveMethod · 0.45
capacityMethod · 0.45

Tested by 4

test_truncate_with_poolFunction · 0.36
test_resize_with_poolFunction · 0.36