GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / tools / misc / xz / src / liblzma / common / easy_buffer_encoder.c
blobc4be34ccfa273406d1aeb7f94b0aabafbe5a7e3b
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file easy_buffer_encoder.c
4 /// \brief Easy single-call .xz Stream encoder
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
11 ///////////////////////////////////////////////////////////////////////////////
13 #include "easy_preset.h"
16 extern LZMA_API(lzma_ret)
17 lzma_easy_buffer_encode(uint32_t preset, lzma_check check,
18 lzma_allocator *allocator, const uint8_t *in, size_t in_size,
19 uint8_t *out, size_t *out_pos, size_t out_size)
21 lzma_options_easy opt_easy;
22 if (lzma_easy_preset(&opt_easy, preset))
23 return LZMA_OPTIONS_ERROR;
25 return lzma_stream_buffer_encode(opt_easy.filters, check,
26 allocator, in, in_size, out, out_pos, out_size);