libdragon
Loading...
Searching...
No Matches
lz4_dec_internal.h
1#ifndef LIBDRAGON_COMPRESS_LZ4_DEC_INTERNAL_H
2#define LIBDRAGON_COMPRESS_LZ4_DEC_INTERNAL_H
3
4#include <stdlib.h>
5#include <stdint.h>
6#include <stdbool.h>
7
34#define LZ4_DECOMPRESS_INPLACE_MARGIN(compressed_size) (((compressed_size) >> 8) + 32)
35
57int decompress_lz4_full_inplace(const uint8_t *src, size_t src_size, uint8_t *dst, size_t dst_size);
58
59
60#define DECOMPRESS_LZ4_STATE_SIZE 176
61
62void decompress_lz4_init(void *state, int fd, int winsize);
63ssize_t decompress_lz4_read(void *state, void *buf, size_t len);
64void decompress_lz4_reset(void *state);
65void* decompress_lz4_full(const char *fn, FILE *fp, size_t cmp_size, size_t size);
66
67#endif