#[unsafe(no_mangle)]pub unsafe extern "C" fn fuchsia_decode_log_message_to_json(
msg: *const u8,
size: usize,
) -> *mut c_charExpand description
§Safety
Same as for std::slice::from_raw_parts. Summarizing in terms of this API:
msgmust be valid for reads forsize, and it must be properly aligned.msgmust point tosizeconsecutive u8 values.- The
sizeof the slice must be no larger thanisize::MAX, and adding that size to data must not “wrap around” the address space. See the safety documentation of pointer::offset.