Function ouster::sdk::pcap::read_packet¶
Defined in File os_pcap.h
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.
- Deprecated:
Use “PcapPacketSource” instead. The last supported version for this will be 1.0.0 .
- 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.