Function cwipc_encoder_get_encoded_size

Function Documentation

size_t cwipc_encoder_get_encoded_size(cwipc_encoder *obj)

Return size (in bytes) of compressed data available (C interface).

The caller should first call available() to check that compressed data is available, then get_encoded_size() to check how much data is available, then allocate a buffer of suitable size, then call copy_data().

Parameters:

obj – The cwipc_encoder object.