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

◆ nrf_compress_reset_func_t

typedef int(* nrf_compress_reset_func_t) (void *inst, size_t decompressed_size)

#include <include/nrf_compress/implementation.h>

Reset compression state function. Used to abort current compression or decompression task before starting a new one.

Parameters
[in]instImplementation specific initialization context. Concrete implementation may cast it to predefined type.
[in]decompressed_sizeExpected size of entire decompressed data stream. It is used for checking that output produced during streaming does not exceed the expected size. Set it to 0 if the size is not known; there will be no output size checking then.
Return values
0Success.
-errnoNegative errno code on other failure.