LibTMJ  1.0.0
A library for loading JSON Tiled maps
decode.h
Go to the documentation of this file.
1 #ifndef LIBTMJ_DECODE
2 #define LIBTMJ_DECODE
3 
4 #include <stdint.h>
5 
12 #ifdef LIBTMJ_ZSTD
13 
14 #include <zstd.h>
15 
32 uint8_t* tmj_zstd_decompress(const uint8_t* data, size_t data_size, size_t* decompressed_size);
33 
34 #endif
35 
36 #ifdef LIBTMJ_ZLIB
37 
38 #include <zlib.h>
39 
51 uint8_t* tmj_zlib_decompress(const uint8_t* data, size_t data_size, size_t* decompressed_size);
52 
53 #endif
54 
65 uint8_t* tmj_b64_decode(const char* data, size_t* decoded_size);
66 
67 #endif
uint8_t * tmj_zlib_decompress(const uint8_t *data, size_t data_size, size_t *decompressed_size)
Decompresses a zlib/gzip-compressed buffer of bytes.
Definition: decode.c:62
uint8_t * tmj_b64_decode(const char *data, size_t *decoded_size)
Decodes a base64 string.
Definition: decode.c:287
uint8_t * tmj_zstd_decompress(const uint8_t *data, size_t data_size, size_t *decompressed_size)
Decompresses a zstd-compressed buffer of bytes.
Definition: decode.c:10