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

Easy .xz Stream encoder initialization. More...

#include "easy_preset.h"

Go to the source code of this file.

Functions

 LZMA_API (lzma_ret)
 

Detailed Description

Easy .xz Stream encoder initialization.

Definition in file easy_encoder.c.

Function Documentation

◆ LZMA_API()

LZMA_API ( lzma_ret  )

Definition at line 16 of file easy_encoder.c.

18 {
19  lzma_options_easy opt_easy;
20  if (lzma_easy_preset(&opt_easy, preset))
21  return LZMA_OPTIONS_ERROR;
22 
23  return lzma_stream_encoder(strm, opt_easy.filters, check);
24 }
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
static lzma_stream strm
Definition: full_flush.c:20
lzma_filter filters[LZMA_FILTERS_MAX+1]
Definition: easy_preset.h:19
@ LZMA_OPTIONS_ERROR
Invalid or unsupported options.
Definition: base.h:160

References check, lzma_options_easy::filters, lzma_easy_preset(), LZMA_OPTIONS_ERROR, preset, and strm.