#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_can_frame_data(
frame: *const PamojaCanFrame,
) -> *const u8Expand description
Returns a pointer to a frame’s payload bytes.
Use pamoja_can_frame_data_len for the length, not
pamoja_can_frame_len: a remote frame reports the length it requests while
carrying no payload at all.
§Returns
A pointer to the payload, or null if frame is null or carries no bytes.
§Safety
frame must be a live handle from one of the frame constructors, or null.