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

Method buffer

src/protocol/buffer_pool.rs:334–336  ·  view source on GitHub ↗

Get an immutable reference to the underlying buffer

(&self)

Source from the content-addressed store, hash-verified

332
333 /// Get an immutable reference to the underlying buffer
334 pub fn buffer(&self) -> &BytesMut {
335 self.buffer.as_ref().expect("Buffer should be available")
336 }
337
338 /// Take ownership of the buffer, preventing return to pool
339 pub fn take(mut self) -> BytesMut {

Callers 3

lenMethod · 0.80
is_emptyMethod · 0.80
capacityMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected