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

Method reset

src/protocol/buffer_pool.rs:112–116  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

110
111impl PooledBuffer {
112 fn reset(&mut self) {
113 self.buffer.clear();
114 self.last_used = Instant::now();
115 self.allocation_count += 1;
116 }
117
118 fn should_discard(&self, max_capacity: usize, cleanup_age: Duration) -> bool {
119 // Discard if buffer has grown too large or is too old

Callers 1

get_bufferMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected