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

Method buffer_mut

src/protocol/buffer_pool.rs:329–331  ·  view source on GitHub ↗

Get a mutable reference to the underlying buffer

(&mut self)

Source from the content-addressed store, hash-verified

327
328 /// Get a mutable reference to the underlying buffer
329 pub fn buffer_mut(&mut self) -> &mut BytesMut {
330 self.buffer.as_mut().expect("Buffer should be available")
331 }
332
333 /// Get an immutable reference to the underlying buffer
334 pub fn buffer(&self) -> &BytesMut {

Callers 4

clearMethod · 0.80

Calls

no outgoing calls