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

Method claim

arrow-buffer/src/bytes.rs:117–119  ·  view source on GitHub ↗
(&self, pool: &dyn MemoryPool)

Source from the content-addressed store, hash-verified

115 /// Register this [`Bytes`] with the provided [`MemoryPool`], replacing any prior reservation.
116 #[cfg(feature = "pool")]
117 pub fn claim(&self, pool: &dyn MemoryPool) {
118 *self.reservation.lock().unwrap() = Some(pool.reserve(self.capacity()));
119 }
120
121 /// Resize the memory reservation of this buffer
122 ///

Callers 2

test_bytes_with_poolFunction · 0.45

Calls 2

reserveMethod · 0.45
capacityMethod · 0.45

Tested by 2

test_bytes_with_poolFunction · 0.36