Skip to main content

serialize_function_summary

Function serialize_function_summary 

Source
pub fn serialize_function_summary(
    summary: &FunctionBytecodeSummary,
    fp: *mut c_void,
)
Expand description

Source: CLI/src/Bytecode.cpp:185-215 (serializeFunctionSummary).

The %s fields take C-string pointers. getSource()/getName() return a non-NUL-terminated &str, so they are copied into NUL-terminated CStrings (the C++ uses std::string::c_str()) before being handed to fprintf.