Rizin
unix-like reverse engineering framework and cli tools
lzss.h
Go to the documentation of this file.
1 /* This file is part of libmspack.
2  * (C) 2003-2004 Stuart Caie.
3  *
4  * libmspack is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License (LGPL) version 2.1
6  *
7  * For further details, see the file COPYING.LIB distributed with libmspack
8  */
9 
10 #ifndef MSPACK_LZSS_H
11 #define MSPACK_LZSS_H 1
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 /* LZSS compression / decompression definitions */
18 
19 #define LZSS_WINDOW_SIZE (4096)
20 #define LZSS_WINDOW_FILL (0x20)
21 
22 #define LZSS_MODE_EXPAND (0)
23 #define LZSS_MODE_MSHELP (1)
24 #define LZSS_MODE_QBASIC (2)
25 
56 extern int lzss_decompress(struct mspack_system *system,
57  struct mspack_file *input,
58  struct mspack_file *output,
59  int input_buffer_size,
60  int mode);
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif
const char int mode
Definition: ioapi.h:137
int lzss_decompress(struct mspack_system *system, struct mspack_file *input, struct mspack_file *output, int input_buffer_size, int mode)
Definition: lzssd.c:37
static bool input(void *ud, zip_uint8_t *data, zip_uint64_t length)
diff_output_t output
Definition: zipcmp.c:237