Skip to main content

hdds_reader_take

Function hdds_reader_take 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn hdds_reader_take( reader: *mut HddsDataReader, data_out: *mut c_void, max_len: usize, len_out: *mut usize, ) -> HddsError
Expand description

Take data from a topic (non-blocking)

ยงSafety

  • reader must be a valid pointer returned from hdds_reader_create
  • data_out must point to a valid buffer of at least max_len bytes
  • len_out must be a valid pointer to write the actual data length