Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | COMPRESSION_LEVEL 6 |
#define | COMPRESSION_EXTREME true |
#define | INTEGRITY_CHECK LZMA_CHECK_CRC64 |
#define | IN_BUF_MAX 4096 |
#define | OUT_BUF_MAX 4096 |
#define | RET_OK 0 |
#define | RET_ERROR_INIT 1 |
#define | RET_ERROR_INPUT 2 |
#define | RET_ERROR_OUTPUT 3 |
#define | RET_ERROR_COMPRESSION 4 |
Functions | |
int | xz_compress (FILE *in_file, FILE *out_file) |
int | main () |
#define COMPRESSION_EXTREME true |
Definition at line 28 of file xz_pipe_comp.c.
#define COMPRESSION_LEVEL 6 |
Definition at line 25 of file xz_pipe_comp.c.
#define IN_BUF_MAX 4096 |
Definition at line 35 of file xz_pipe_comp.c.
#define INTEGRITY_CHECK LZMA_CHECK_CRC64 |
Definition at line 31 of file xz_pipe_comp.c.
#define OUT_BUF_MAX 4096 |
Definition at line 36 of file xz_pipe_comp.c.
#define RET_ERROR_COMPRESSION 4 |
Definition at line 43 of file xz_pipe_comp.c.
#define RET_ERROR_INIT 1 |
Definition at line 40 of file xz_pipe_comp.c.
#define RET_ERROR_INPUT 2 |
Definition at line 41 of file xz_pipe_comp.c.
#define RET_ERROR_OUTPUT 3 |
Definition at line 42 of file xz_pipe_comp.c.
#define RET_OK 0 |
Definition at line 39 of file xz_pipe_comp.c.
int main | ( | void | ) |
int xz_compress | ( | FILE * | in_file, |
FILE * | out_file | ||
) |
Definition at line 47 of file xz_pipe_comp.c.
References test-lz4-speed::action, lzma_stream::avail_in, lzma_stream::avail_out, check, COMPRESSION_EXTREME, COMPRESSION_LEVEL, in_buf, IN_BUF_MAX, INTEGRITY_CHECK, LZMA_FINISH, LZMA_OK, LZMA_PRESET_EXTREME, LZMA_RUN, LZMA_STREAM_END, LZMA_STREAM_INIT, lzma_stream::next_in, lzma_stream::next_out, out_buf, OUT_BUF_MAX, preset, RET_ERROR_COMPRESSION, RET_ERROR_INIT, RET_ERROR_INPUT, RET_ERROR_OUTPUT, RET_OK, and strm.
Referenced by main().