blob: 77100c6eb0ebd62800306a591cd097fbd730d9ae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef LISIBLE_PNG_DEFLATE_H
#define LISIBLE_PNG_DEFLATE_H
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
/// 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
|