Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | oabd_file |
Functions | |
static int | oabd_decompress (struct msoab_decompressor *self, const char *input, const char *output) |
static int | oabd_decompress_incremental (struct msoab_decompressor *self, const char *input, const char *base, const char *output) |
static int | oabd_param (struct msoab_decompressor *base, int param, int value) |
static int | copy_fh (struct mspack_system *sys, struct mspack_file *infh, struct mspack_file *outfh, size_t bytes_to_copy, unsigned char *buf, int buf_size) |
struct msoab_decompressor * | mspack_create_oab_decompressor (struct mspack_system *sys) |
void | mspack_destroy_oab_decompressor (struct msoab_decompressor *base) |
static int | oabd_sys_read (struct mspack_file *base_file, void *buf, int size) |
static int | oabd_sys_write (struct mspack_file *base_file, void *buf, int size) |
|
static |
Definition at line 375 of file oabd.c.
References buf_size, int, MSPACK_ERR_OK, MSPACK_ERR_READ, MSPACK_ERR_WRITE, mspack_system::read, run(), and mspack_system::write.
Referenced by oabd_decompress(), and oabd_decompress_incremental().
struct msoab_decompressor* mspack_create_oab_decompressor | ( | struct mspack_system * | sys | ) |
Creates a new OAB decompressor.
sys | a custom mspack_system structure, or NULL to use the default |
Definition at line 43 of file oabd.c.
References mspack_system::alloc, mspack_default_system, mspack_valid_system(), NULL, oabd_decompress(), oabd_decompress_incremental(), and oabd_param().
Referenced by main().
void mspack_destroy_oab_decompressor | ( | struct msoab_decompressor * | self | ) |
Destroys an existing OAB decompressor.
self | the msoab_decompressor to destroy |
Definition at line 60 of file oabd.c.
References msoab_decompressor_p::base, and mspack_system::free.
Referenced by main().
|
static |
Definition at line 103 of file oabd.c.
References mspack_system::alloc, oabd_file::available, mspack_system::close, copy_fh(), oabd_file::crc, EndGetI32, mspack_system::free, input(), lzxd_decompress(), lzxd_free(), lzxd_init(), MSPACK_ERR_ARGS, MSPACK_ERR_CHECKSUM, MSPACK_ERR_DATAFORMAT, MSPACK_ERR_NOMEMORY, MSPACK_ERR_OK, MSPACK_ERR_OPEN, MSPACK_ERR_READ, MSPACK_ERR_SIGNATURE, MSPACK_SYS_OPEN_READ, MSPACK_SYS_OPEN_WRITE, NULL, oabblk_CompSize, oabblk_CRC, oabblk_Flags, oabblk_SIZEOF, oabblk_UncompSize, oabd_sys_read(), oabd_sys_write(), oabhead_BlockMax, oabhead_SIZEOF, oabhead_TargetSize, oabhead_VersionHi, oabhead_VersionLo, mspack_system::open, oabd_file::orig_file, oabd_file::orig_sys, out, output, mspack_system::read, and mspack_system::write.
Referenced by mspack_create_oab_decompressor().
|
static |
Definition at line 234 of file oabd.c.
References mspack_system::alloc, oabd_file::available, mspack_system::close, copy_fh(), oabd_file::crc, EndGetI32, mspack_system::free, input(), lzxd_decompress(), lzxd_free(), lzxd_init(), lzxd_set_reference_data(), MSPACK_ERR_ARGS, MSPACK_ERR_CHECKSUM, MSPACK_ERR_DATAFORMAT, MSPACK_ERR_NOMEMORY, MSPACK_ERR_OK, MSPACK_ERR_OPEN, MSPACK_ERR_READ, MSPACK_ERR_SIGNATURE, MSPACK_SYS_OPEN_READ, MSPACK_SYS_OPEN_WRITE, NULL, oabd_sys_read(), oabd_sys_write(), mspack_system::open, oabd_file::orig_file, oabd_file::orig_sys, out, output, patchblk_CRC, patchblk_PatchSize, patchblk_SIZEOF, patchblk_SourceSize, patchblk_TargetSize, patchhead_BlockMax, patchhead_SIZEOF, patchhead_TargetSize, patchhead_VersionHi, patchhead_VersionLo, mspack_system::read, and mspack_system::write.
Referenced by mspack_create_oab_decompressor().
|
static |
Definition at line 395 of file oabd.c.
References msoab_decompressor_p::base, MSOABD_PARAM_DECOMPBUF, MSPACK_ERR_ARGS, MSPACK_ERR_OK, and value.
Referenced by mspack_create_oab_decompressor().
|
static |
Definition at line 76 of file oabd.c.
Referenced by oabd_decompress(), and oabd_decompress_incremental().
|
static |
Definition at line 92 of file oabd.c.
References crc32().
Referenced by oabd_decompress(), and oabd_decompress_incremental().