Rizin
unix-like reverse engineering framework and cli tools
easy_buffer_encoder.c File Reference

Easy single-call .xz Stream encoder. More...

#include "easy_preset.h"

Go to the source code of this file.

Functions

 LZMA_API (lzma_ret)
 

Detailed Description

Easy single-call .xz Stream encoder.

Definition in file easy_buffer_encoder.c.

Function Documentation

◆ LZMA_API()

LZMA_API ( lzma_ret  )

Definition at line 16 of file easy_buffer_encoder.c.

20 {
21  lzma_options_easy opt_easy;
22  if (lzma_easy_preset(&opt_easy, preset))
23  return LZMA_OPTIONS_ERROR;
24 
25  return lzma_stream_buffer_encode(opt_easy.filters, check,
26  allocator, in, in_size, out, out_pos, out_size);
27 }
const lzma_allocator const uint8_t size_t uint8_t size_t * out_pos
Definition: block.h:528
const lzma_allocator const uint8_t size_t in_size
Definition: block.h:527
const lzma_allocator * allocator
Definition: block.h:377
const lzma_allocator const uint8_t * in
Definition: block.h:527
const lzma_allocator const uint8_t size_t uint8_t * out
Definition: block.h:528
uint32_t preset
Definition: container.h:259
lzma_check check
Definition: container.h:292
bool lzma_easy_preset(lzma_options_easy *opt_easy, uint32_t preset)
Definition: easy_preset.c:17
lzma_filter filters[LZMA_FILTERS_MAX+1]
Definition: easy_preset.h:19
@ LZMA_OPTIONS_ERROR
Invalid or unsupported options.
Definition: base.h:160

References allocator, check, lzma_options_easy::filters, in, in_size, lzma_easy_preset(), LZMA_OPTIONS_ERROR, out, out_pos, and preset.