diff options
Diffstat (limited to 'lisiblepng/src/deflate.h')
| -rw-r--r-- | lisiblepng/src/deflate.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisiblepng/src/deflate.h b/lisiblepng/src/deflate.h index e40f816..77100c6 100644 --- a/lisiblepng/src/deflate.h +++ b/lisiblepng/src/deflate.h @@ -5,7 +5,11 @@ #include <stdint.h> #include <stdlib.h> -bool zlib_decompress(const uint8_t *compressed_data_buffer, - const size_t compressed_data_length); +/// Decompresses zlib compressed data as defined by RFC 1950 +/// +/// @return A pointer to the decompressed data, the caller is responsible to +/// deallocate it using free(). In case of error, NULL is returned. +char *zlib_decompress(const uint8_t *compressed_data_buffer, + const size_t compressed_data_length); #endif // LISIBLE_PNG_DEFLATE_H |
