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

Method push_tail

xtask/src/main.rs:87–97  ·  view source on GitHub ↗
(&self, bytes: &[u8])

Source from the content-addressed store, hash-verified

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

Callers 2

poll_writeMethod · 0.45
poll_write_vectoredMethod · 0.45

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected