VirtualBox

source: vbox/trunk/src/libs/liblzma-5.4.1/common/easy_buffer_encoder.c@ 98879

Last change on this file since 98879 was 98730, checked in by vboxsync, 21 months ago

libs/liblzma-5.4.1: Export to OSE, bugref:10254

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 840 bytes
Line 
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.
10//
11///////////////////////////////////////////////////////////////////////////////
12
13#include "easy_preset.h"
14
15
16extern LZMA_API(lzma_ret)
17lzma_easy_buffer_encode(uint32_t preset, lzma_check check,
18 const lzma_allocator *allocator, const uint8_t *in,
19 size_t in_size, uint8_t *out, size_t *out_pos, size_t out_size)
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}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette