#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] | inst | Implementation specific initialization context. Concrete implementation may cast it to predefined type. |
| [in] | decompressed_size | Expected 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
-
| 0 | Success. |
| -errno | Negative errno code on other failure. |