MCPcopy Create free account
hub / github.com/erans/pgsqlite / take

Method take

src/protocol/buffer_pool.rs:339–341  ·  view source on GitHub ↗

Take ownership of the buffer, preventing return to pool

(mut self)

Source from the content-addressed store, hash-verified

337
338 /// Take ownership of the buffer, preventing return to pool
339 pub fn take(mut self) -> BytesMut {
340 self.buffer.take().expect("Buffer should be available")
341 }
342
343 /// Get the length of the buffer
344 pub fn len(&self) -> usize {

Callers 14

dropMethod · 0.80
dropMethod · 0.80
cleanup_connectionMethod · 0.80
query_fast_pathFunction · 0.80
execute_fast_selectFunction · 0.80
handle_bindMethod · 0.80
encode_rowMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_parameter_limitFunction · 0.64