Skip to main content

pamoja_can_frame_data_len

Function pamoja_can_frame_data_len 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_can_frame_data_len( frame: *const PamojaCanFrame, ) -> usize
Expand description

Returns how many bytes pamoja_can_frame_data points to.

This is the frame’s length for an ordinary frame and 0 for a remote one, which requests a length without carrying the bytes.

§Returns

The payload length, or 0 if frame is null.

§Safety

frame must be a live handle from one of the frame constructors, or null.