Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
static struct msszddd_header * | szddd_open (struct msszdd_decompressor *base, const char *filename) |
static void | szddd_close (struct msszdd_decompressor *base, struct msszddd_header *hdr) |
static int | szddd_read_headers (struct mspack_system *sys, struct mspack_file *fh, struct msszddd_header *hdr) |
static int | szddd_extract (struct msszdd_decompressor *base, struct msszddd_header *hdr, const char *filename) |
static int | szddd_decompress (struct msszdd_decompressor *base, const char *input, const char *output) |
static int | szddd_error (struct msszdd_decompressor *base) |
struct msszdd_decompressor * | mspack_create_szdd_decompressor (struct mspack_system *sys) |
void | mspack_destroy_szdd_decompressor (struct msszdd_decompressor *base) |
Variables | |
static unsigned char | szdd_signature_expand [8] |
static unsigned char | szdd_signature_qbasic [8] |
struct msszdd_decompressor* mspack_create_szdd_decompressor | ( | struct mspack_system * | sys | ) |
Creates a new SZDD decompressor.
sys | a custom mspack_system structure, or NULL to use the default |
Definition at line 41 of file szddd.c.
References mspack_system::alloc, mspack_default_system, MSPACK_ERR_OK, mspack_valid_system(), NULL, szddd_close(), szddd_decompress(), szddd_error(), szddd_extract(), and szddd_open().
Referenced by main().
void mspack_destroy_szdd_decompressor | ( | struct msszdd_decompressor * | self | ) |
Destroys an existing SZDD decompressor.
self | the msszdd_decompressor to destroy |
Definition at line 65 of file szddd.c.
References msszdd_decompressor_p::base, and mspack_system::free.
Referenced by main().
|
static |
Definition at line 115 of file szddd.c.
References msszdd_decompressor_p::base, msszddd_header_p::fh, and MSPACK_ERR_OK.
Referenced by mspack_create_szdd_decompressor(), and szddd_decompress().
|
static |
Definition at line 223 of file szddd.c.
References msszdd_decompressor_p::base, error(), input(), MSPACK_ERR_ARGS, output, szddd_close(), szddd_extract(), and szddd_open().
Referenced by mspack_create_szdd_decompressor().
|
static |
Definition at line 243 of file szddd.c.
References msszdd_decompressor_p::base, and MSPACK_ERR_ARGS.
Referenced by mspack_create_szdd_decompressor().
|
static |
Definition at line 181 of file szddd.c.
References msszdd_decompressor_p::base, mspack_system::close, fh, msszddd_header::format, lzss_decompress(), LZSS_MODE_EXPAND, LZSS_MODE_QBASIC, MSPACK_ERR_ARGS, MSPACK_ERR_OPEN, MSPACK_ERR_SEEK, MSPACK_SYS_OPEN_WRITE, MSPACK_SYS_SEEK_START, MSSZDD_FMT_NORMAL, mspack_system::open, mspack_system::seek, and SZDD_INPUT_SIZE.
Referenced by mspack_create_szdd_decompressor(), and szddd_decompress().
|
static |
Definition at line 79 of file szddd.c.
References mspack_system::alloc, msszdd_decompressor_p::base, mspack_system::close, fh, mspack_system::free, MSPACK_ERR_NOMEMORY, MSPACK_ERR_OPEN, MSPACK_SYS_OPEN_READ, NULL, mspack_system::open, and szddd_read_headers().
Referenced by mspack_create_szdd_decompressor(), and szddd_decompress().
|
static |
Definition at line 144 of file szddd.c.
References EndGetI32, fh, msszddd_header::format, msszddd_header::length, msszddd_header::missing_char, MSPACK_ERR_DATAFORMAT, MSPACK_ERR_OK, MSPACK_ERR_READ, MSPACK_ERR_SIGNATURE, MSSZDD_FMT_NORMAL, MSSZDD_FMT_QBASIC, mspack_system::read, szdd_signature_expand, and szdd_signature_qbasic.
Referenced by szddd_open().
|
static |
Definition at line 137 of file szddd.c.
Referenced by szddd_read_headers().
|
static |
Definition at line 140 of file szddd.c.
Referenced by szddd_read_headers().