MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / trim

Method trim

hail-fuzz/src/input.rs:226–228  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

224 }
225
226 pub fn trim(&mut self) {
227 self.streams.values_mut().for_each(|x| x.bytes.truncate(x.cursor as usize));
228 }
229
230 pub fn snapshot_cursors(&self) -> Vec<(u64, u32)> {
231 self.streams.iter().map(|(key, value)| (*key, value.cursor)).collect()

Callers 3

runFunction · 0.80
auto_trim_inputMethod · 0.80
from_lineMethod · 0.80

Calls

no outgoing calls

Tested by 1

from_lineMethod · 0.64