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

Function get_rust_to_c_map

src/program/shim.rs:23–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21static RUST_TO_C_MAP: OnceCell<HashMap<&'static str, &'static str>> = OnceCell::new();
22
23fn get_rust_to_c_map() -> &'static HashMap<&'static str, &'static str> {
24 RUST_TO_C_MAP.get_or_init(|| {
25 HashMap::from([
26 ("i8", "int8_t"),
27 ("u8", "uint8_t"),
28 ("i16", "int16_t"),
29 ("u16", "uint16_t"),
30 ("i32", "int32_t"),
31 ("u32", "uint32_t"),
32 ("i64", "int64_t"),
33 ("u64", "uint64_t"),
34 ])
35 })
36}
37
38pub struct FuzzerShim {
39 /// fuzzer required fields

Callers 2

append_integer_varMethod · 0.85
append_integer_arrayMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected