MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / append_float_array

Method append_float_array

src/program/shim.rs:172–183  ·  view source on GitHub ↗
(&mut self, floats: Vec<f32>)

Source from the content-addressed store, hash-verified

170 }
171
172 pub fn append_float_array(&mut self, floats: Vec<f32>) {
173 let var = format!(
174 "FDPConsumeFloatingArray(fuzz_float_array_{0}, fuzz_float_array_size_{0}, fdp);",
175 self.get_fuzz_id_inc()
176 );
177 self.fuzz_stmts.push(var);
178 let mut bytes: Vec<u8> = Vec::new();
179 for float in floats {
180 bytes.extend(float.to_le_bytes());
181 }
182 self.append_fuzz_seeds_with_magic(&bytes);
183 }
184
185 fn append_double_var(&mut self, d: f64) {
186 let var = format!(

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45

Tested by

no test coverage detected