libdragon
Loading...
Searching...
No Matches
lzh5_internal.h
Go to the documentation of this file.
1
5#ifndef LIBDRAGON_COMPRESS_LZH5_h
6#define LIBDRAGON_COMPRESS_LZH5_h
7
8#include <stdio.h>
9#include <stdint.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
21#define DECOMPRESS_LZH5_STATE_SIZE (6096+16)
22
26#define DECOMPRESS_LZH5_DEFAULT_WINDOW_SIZE (8192)
27
35void decompress_lzh5_init(void *state, FILE *fp, int winsize);
36
45ssize_t decompress_lzh5_read(void *state, void *buf, size_t len);
46
53int decompress_lzh5_pos(void *state);
54
72void* decompress_lzh5_full(const char *fn, FILE *fp, size_t cmp_size, size_t size);
73
74#ifdef __cplusplus
75}
76#endif
77
78#endif
ssize_t decompress_lzh5_read(void *state, void *buf, size_t len)
Read decompressed data from the LZH5 stream.
int decompress_lzh5_pos(void *state)
Get the current position in the decompressed stream.
void * decompress_lzh5_full(const char *fn, FILE *fp, size_t cmp_size, size_t size)
Decompress a full LZH5 file into a buffer.
void decompress_lzh5_init(void *state, FILE *fp, int winsize)
Initialize the LZH5 decompressor state.