summaryrefslogtreecommitdiffstats
path: root/lz4.h
diff options
context:
space:
mode:
authoryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2013-04-13 09:31:22 (GMT)
committeryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2013-04-13 09:31:22 (GMT)
commitcbfd031d301222123d185320a55a923f9363f781 (patch)
tree4d1b6bee26974c0bb98ec3c2989e8e1d81da3046 /lz4.h
parent647baabcef0effcfcb3cc0dadb2970db681c9d52 (diff)
downloadlz4-cbfd031d301222123d185320a55a923f9363f781.zip
lz4-cbfd031d301222123d185320a55a923f9363f781.tar.gz
lz4-cbfd031d301222123d185320a55a923f9363f781.tar.bz2
Added : LZ4 Streaming Format specification (v1.3)
Added : LZ4c command-line utility, supporting the new streaming format Added : xxhash library Removed : lz4demo is now replaced by lz4.c Removed : a few level 4 warnings (issue 64) Updated : makefiles git-svn-id: https://lz4.googlecode.com/svn/trunk@92 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
Diffstat (limited to 'lz4.h')
-rw-r--r--lz4.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/lz4.h b/lz4.h
index b50e98d..2785444 100644
--- a/lz4.h
+++ b/lz4.h
@@ -1,7 +1,7 @@
/*
LZ4 - Fast LZ compression algorithm
Header File
- Copyright (C) 2011-2012, Yann Collet.
+ Copyright (C) 2011-2013, Yann Collet.
BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
Redistribution and use in source and binary forms, with or without
@@ -50,27 +50,26 @@ extern "C" {
// Simple Functions
//****************************
-int LZ4_compress (const char* source, char* dest, int isize);
-int LZ4_uncompress (const char* source, char* dest, int osize);
+int LZ4_compress (const char* source, char* dest, int input_size);
+int LZ4_uncompress (const char* source, char* dest, int output_size);
/*
LZ4_compress() :
- Compresses 'isize' bytes from 'source' into 'dest'.
+ Compresses 'input_size' bytes from 'source' into 'dest'.
Destination buffer must be already allocated,
and must be sized to handle worst cases situations (input data not compressible)
Worst case size evaluation is provided by function LZ4_compressBound()
-
- isize : is the input size. Max supported value is ~1.9GB
+ input_size : Max supported value is ~1.9GB
return : the number of bytes written in buffer dest
-
+ or 0 if the compression fails
LZ4_uncompress() :
- osize : is the output size, therefore the original size
+ output_size : is the original (uncompressed) size
return : the number of bytes read in the source buffer (in other words, the compressed size)
- If the source stream is malformed, the function will stop decoding and return a negative result, indicating the byte position of the faulty instruction
- This function never writes outside of provided buffers, and never modifies input buffer.
- note : destination buffer must be already allocated.
- its size must be a minimum of 'osize' bytes.
+ If the source stream is malformed, the function will stop decoding and return a negative result, indicating the byte position of the faulty instruction.
+ note : This function never writes outside of provided buffers, and never modifies input buffer.
+ Destination buffer must be already allocated.
+ Its size must be a minimum of 'output_size' bytes.
*/