_archivist_c_lib_rustc_static

Function fuchsia_decode_log_message_to_json

Source
#[no_mangle]
pub unsafe extern "C" fn fuchsia_decode_log_message_to_json(
    msg: *const u8,
    size: usize,
) -> *mut c_char
Expand description

§Safety

Same as for std::slice::from_raw_parts. Summarizing in terms of this API:

  • msg must be valid for reads for size, and it must be properly aligned.
  • msg must point to size consecutive u8 values.
  • The size of the slice must be no larger than isize::MAX, and adding that size to data must not “wrap around” the address space. See the safety documentation of pointer::offset.