Function cwipc_encoder_copy_data
Defined in File api.h
Function Documentation
-
bool cwipc_encoder_copy_data(cwipc_encoder *obj, void *buffer, size_t bufferSize)
Obtain compressed pointcloud data (C interface).
Copies the data of the most recently compressed pointcloud into a buffer supplied by the caller. The compressed data is returned at most once, so after this call
available()will return false again untilfeed()has been called.- Parameters:
obj – The cwipc_encoder object.
buffer – Pointer to the buffer where the compressed data will be stored.
bufferSize – Size of buffer (in bytes)