Rizin
unix-like reverse engineering framework and cli tools
|
Encodes .lzma Stream with sizes known in Block Header. More...
#include "sysdefs.h"
#include "lzma.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/unistd.h>
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | BUFFER_SIZE (1U << 20) |
Functions | |
int | main (void) |
Encodes .lzma Stream with sizes known in Block Header.
The input file is encoded in RAM, and the known Compressed Size and/or Uncompressed Size values are stored in the Block Header. As of writing there's no such Stream encoder in liblzma.
Definition in file known_sizes.c.
#define BUFFER_SIZE (1U << 20) |
Definition at line 28 of file known_sizes.c.
int main | ( | void | ) |
Definition at line 32 of file known_sizes.c.
References lzma_stream::avail_in, lzma_stream::avail_out, lzma_stream_flags::backward_size, BUFFER_SIZE, lzma_block::check, filters, lzma_block::header_size, lzma_filter::id, setup::idx, in, in_size, LZMA_CHECK_CRC32, LZMA_FILTER_LZMA2, LZMA_FINISH, LZMA_OK, LZMA_RUN, LZMA_STREAM_END, LZMA_STREAM_HEADER_SIZE, LZMA_STREAM_INIT, LZMA_VLI_UNKNOWN, malloc(), lzma_stream::next_in, lzma_stream::next_out, NULL, opt_lzma, out, strm, lzma_stream::total_in, and lzma_stream::total_out.