MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / push_tail

Method push_tail

src/pglite/postgres_mod.rs:86–96  ·  view source on GitHub ↗
(&self, bytes: &[u8])

Source from the content-addressed store, hash-verified

84 }
85
86 fn push_tail(&self, bytes: &[u8]) {
87 let Ok(mut state) = self.inner.lock() else {
88 return;
89 };
90 for byte in bytes {
91 state.bytes.push_back(*byte);
92 while state.bytes.len() > self.limit {
93 state.bytes.pop_front();
94 }
95 }
96 }
97}
98
99impl TailCaptureHandle {

Callers 2

poll_writeMethod · 0.45
poll_write_vectoredMethod · 0.45

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected