Function ouster::sdk::pcap::read_packet

Function Documentation

size_t ouster::sdk::pcap::read_packet(PlaybackHandle &handle, uint8_t *buf, size_t buffer_size)

Read the data from the next packet avaliable in the PlaybackHandle.

This must be called AFTER calling the next_packet_info function.

Parameters:
  • handle[in] – The playback handle.

  • buf[out] – The buffer to write the recieved data to (Must be sized appropriately.

  • buffer_size[in] – The size of the output buffer.

Returns:

0 on no new packet, > 0 the size of the bytes recieved.