]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.fastlz/native/lz4hc.h
Sync git svn branch with SVN repository r33269.
[simantics/platform.git] / bundles / org.simantics.fastlz / native / lz4hc.h
1 /*\r
2    LZ4 HC - High Compression Mode of LZ4\r
3    Header File\r
4    Copyright (C) 2011-2012, Yann Collet.\r
5    BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)\r
6 \r
7    Redistribution and use in source and binary forms, with or without\r
8    modification, are permitted provided that the following conditions are\r
9    met:\r
10 \r
11        * Redistributions of source code must retain the above copyright\r
12    notice, this list of conditions and the following disclaimer.\r
13        * Redistributions in binary form must reproduce the above\r
14    copyright notice, this list of conditions and the following disclaimer\r
15    in the documentation and/or other materials provided with the\r
16    distribution.\r
17 \r
18    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r
19    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\r
20    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\r
21    A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\r
22    OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r
23    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\r
24    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
25    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
26    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
27    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\r
28    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
29 \r
30    You can contact the author at :\r
31    - LZ4 homepage : http://fastcompression.blogspot.com/p/lz4.html\r
32    - LZ4 source repository : http://code.google.com/p/lz4/\r
33 */\r
34 #pragma once\r
35 \r
36 \r
37 #if defined (__cplusplus)\r
38 extern "C" {\r
39 #endif\r
40 \r
41 \r
42 int LZ4_compressHC (const char* source, char* dest, int isize);\r
43 \r
44 /*\r
45 LZ4_compressHC :\r
46         return : the number of bytes in compressed buffer dest\r
47         note : destination buffer must be already allocated. \r
48                 To avoid any problem, size it to handle worst cases situations (input data not compressible)\r
49                 Worst case size evaluation is provided by function LZ4_compressBound() (see "lz4.h")\r
50 */\r
51 \r
52 \r
53 /* Note :\r
54 Decompression functions are provided within regular LZ4 source code (see "lz4.h") (BSD license)\r
55 */\r
56 \r
57 \r
58 #if defined (__cplusplus)\r
59 }\r
60 #endif\r