libdragon
Loading...
Searching...
No Matches
lzh5_internal.h
1#ifndef LIBDRAGON_COMPRESS_LZH5_h
2#define LIBDRAGON_COMPRESS_LZH5_h
3
4#include <stdio.h>
5#include <stdint.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
17#define DECOMPRESS_LZH5_STATE_SIZE (6096+16)
18#define DECOMPRESS_LZH5_DEFAULT_WINDOW_SIZE (8192)
19
20void decompress_lzh5_init(void *state, FILE *fp, int winsize);
21ssize_t decompress_lzh5_read(void *state, void *buf, size_t len);
22int decompress_lzh5_pos(void *state);
23
41void* decompress_lzh5_full(const char *fn, FILE *fp, size_t cmp_size, size_t size);
42
43#ifdef __cplusplus
44}
45#endif
46
47#endif