nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ decompress

const nrf_compress_decompress_func_t nrf_compress_implementation::decompress

Decompress portion of compressed data. This function will need to be called one or more times with compressed data to decompress it into its natural form.

Parameters
[in]instReserved for future use, must be NULL.
[in]inputInput data buffer, containing the compressed data.
[in]input_sizeSize of the input data buffer.
[in]last_partLast part of compressed data. This should be set to true if this is the final part of the input data.
[out]offsetInput data offset pointer. This will be updated with the amount of bytes used from the input buffer. If this is not the last decompression call, then the next call to this function should offset the input data buffer by this amount of bytes.
[out]outputOutput data buffer pointer to pointer. This will be set to the compression's output buffer when decompressed data is available to be used or copied. @ param[out] output_size Size of data in output data buffer pointer. Data should only be read when the value in this pointer is greater than 0.
Return values
0Success.
-errnoNegative errno code on other failure.