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

Function parse_trim

hail-fuzz/src/debugging/mod.rs:123–132  ·  view source on GitHub ↗

Parses a trim expression of the form: " , , "

(trim: &str)

Source from the content-addressed store, hash-verified

121
122/// Parses a trim expression of the form: "<stream addr>,<stream offset>,<size>"
123fn parse_trim(trim: &str) -> Option<(u64, usize, usize)> {
124 use icicle_fuzzing::parse_u64_with_prefix;
125
126 let mut parts = trim.split(',');
127 let stream = parse_u64_with_prefix(parts.next()?)?;
128 let offset = parse_u64_with_prefix(parts.next()?)?;
129 let size = parse_u64_with_prefix(parts.next()?)?;
130
131 Some((stream, offset as usize, size as usize))
132}
133
134/// Parses an insertion/replacement expression of the form:
135///

Callers 1

modify_inputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected