nautilus_core::ffi::parsing

Function optional_bytes_to_json

Source
pub unsafe fn optional_bytes_to_json(
    ptr: *const c_char,
) -> Option<HashMap<String, Value>>
Expand description

Convert a C bytes pointer into an owned Option<HashMap<String, Value>>.

ยงSafety

  • Assumes ptr is a valid C string pointer.