/lz4-3.4.0-2.7.6/tests/ |
D | COPYING | 6 Everyone is permitted to copy and distribute verbatim copies 11 The licenses for most software are designed to take away your 12 freedom to share and change it. By contrast, the GNU General Public 13 License is intended to guarantee your freedom to share and change free 14 software--to make sure the software is free for all its users. This 15 General Public License applies to most of the Free Software 16 Foundation's software and to any other program whose authors commit to 18 the GNU Lesser General Public License instead.) You can apply it to 21 When we speak of free software, we are referring to freedom, not 22 price. Our General Public Licenses are designed to make sure that you [all …]
|
D | README.md | 8 - `fuzzer` : Test tool, to check lz4 integrity on target platform 15 This script creates `versionsTest` directory to which lz4 repository is cloned. 22 This script creates `speedTest` directory to which lz4 repository is cloned. 26 The results of the speed benchmark are compared to the previous results. 28 If second results are also lower than `lowerLimit` the warning e-mail is send to recipients from th… 31 - To be sure that speed results are accurate the script should be run on a "stable" target system w… 32 - Using the script with virtual machines can lead to large variations of speed results 42 To run the script in background please use: 51 emails list of e-mail addresses to send warnings 55 --message MESSAGE attach an additional message to e-mail [all …]
|
/lz4-3.4.0-2.7.6/programs/ |
D | COPYING | 6 Everyone is permitted to copy and distribute verbatim copies 11 The licenses for most software are designed to take away your 12 freedom to share and change it. By contrast, the GNU General Public 13 License is intended to guarantee your freedom to share and change free 14 software--to make sure the software is free for all its users. This 15 General Public License applies to most of the Free Software 16 Foundation's software and to any other program whose authors commit to 18 the GNU Lesser General Public License instead.) You can apply it to 21 When we speak of free software, we are referring to freedom, not 22 price. Our General Public Licenses are designed to make sure that you [all …]
|
D | lz4.1 | 11 \fBunlz4\fR is equivalent to \fBlz4 \-d\fR 14 \fBlz4cat\fR is equivalent to \fBlz4 \-dcfm\fR 17 When writing scripts that need to decompress files, it is recommended to always use the name \fBlz4… 23 \fBlz4\fR supports a command line syntax similar \fIbut not identical\fR to \fBgzip(1)\fR\. Differe… 32 \fBlz4 file\.lz4\fR will default to decompression (use \fB\-z\fR to force compression) 38 …ion statistics during compression or decompression of a single file (use \fB\-q\fR to silence them) 44 It is considered bad practice to rely on implicit output in scripts\. because the script\'s environ… 52 …to provide multiple input filenames, which will be compressed into files using suffix \fB\.lz4\fR\… 58 It\'s possible to opt\-in to erase source files on successful compression or decompression, using \… 66 It is possible to concatenate \fB\.lz4\fR files as is\. \fBlz4\fR will decompress such files as if … [all …]
|
D | lz4.1.md | 9 `unlz4` is equivalent to `lz4 -d` 11 `lz4cat` is equivalent to `lz4 -dcfm` 13 When writing scripts that need to decompress files, 14 it is recommended to always use the name `lz4` with appropriate arguments 31 `lz4` supports a command line syntax similar _but not identical_ to `gzip(1)`. 36 * `lz4 file.lz4` will default to decompression (use `-z` to force compression) 40 (use `-q` to silence them) 45 * It is considered bad practice to rely on implicit output in scripts. 54 * `lz4 -m` makes it possible to provide multiple input filenames, 56 Progress notifications become disabled by default (use `-v` to enable them). [all …]
|
/lz4-3.4.0-2.7.6/examples/ |
D | COPYING | 6 Everyone is permitted to copy and distribute verbatim copies 11 The licenses for most software are designed to take away your 12 freedom to share and change it. By contrast, the GNU General Public 13 License is intended to guarantee your freedom to share and change free 14 software--to make sure the software is free for all its users. This 15 General Public License applies to most of the Free Software 16 Foundation's software and to any other program whose authors commit to 18 the GNU Lesser General Public License instead.) You can apply it to 21 When we speak of free software, we are referring to freedom, not 22 price. Our General Public Licenses are designed to make sure that you [all …]
|
D | simple_buffer.c | 5 …* Description: Example program to demonstrate the basic usage of the compress/decompress functions… 14 #include "lz4.h" // This is all that is required to expose the prototypes for basic compression… 30 // Below we will have a Compression and Decompression section to demonstrate. in main() 35 // This is baked into the API and not going to change, for consistency. in main() 37 …// you may need to do some casting or set the right -Wno compiler flags to ignore those warni… in main() 40 // We'll store some text into a variable pointed to by *src to be compressed later. in main() 42 …// The compression function needs to know how many bytes exist. Since we're using a string, we ca… in main() 49 run_screaming("Failed to allocate memory for *compressed_data.", 1); in main() 50 // That's all the information and preparation LZ4 needs to compress *src into *compressed_data. in main() 51 // Invoke LZ4_compress_default now with our size values and pointers to our memory locations. in main() [all …]
|
D | blockStreaming_doubleBuffer.md | 73 Next, read first block to double buffer's first page. And compress it by `LZ4_compress_continue()`. 75 so it just compress the line without dependencies and generates compressed block {Out#1} to LZ4 com… 76 After that, write {Out#1} to the file. 78 Next, read second block to double buffer's second page. And compress it. 79 This time, LZ4 can use dependency to Block#1 to improve compression ratio. 82 Next, read third block to double buffer's *first* page, and compress it. 83 Also this time, LZ4 can use dependency to Block#2. 86 Continue these procedure to the end of the file. 94 - Decompress it to the first page and write that page to the file. 96 - Decompress it to the second page and write that page to the file. [all …]
|
D | compress_functions.c | 5 …* Description: A program to demonstrate the various compression functions involved in when using L… 6 …* is to show how each step in the call stack can be used directly, if desired. There… 7 …* each function to demonstrate the (probably lack of) performance difference when jum… 8 * (If you're new to lz4, please read simple_buffer.c to understand the fundamentals) 23 … This simply accepts all the pointers and values collected thus far and adds logic to determine how 29 …* situations, but you really need to know what you're doing AND what you're asking … 38 …* both the size of the compresssed buffer to read as well as the maximum size of t… 42 …* size of the compressed buffer (it will simply be read-to-end, hence it's non-saf… 46 * exposed for anyone using lz4.h to utilize. 54 /* Since lz4 compiles with c99 and not gnu/std99 we need to enable POSIX linking for time.h structs… [all …]
|
/lz4-3.4.0-2.7.6/doc/ |
D | lz4_Block_format.md | 8 willing to produce LZ4-compatible compressed data blocks 13 The latter is assumed to be handled by other parts of the system 15 This design is assumed to favor simplicity and speed. 35 Therefore each field ranges from 0 to 15. 39 It provides the length of literals to follow. 42 If it is 15, then we need to add some more bytes to indicate the full length. 43 Each additional byte then represent a value from 0 to 255, 44 which is added to the previous value to produce a total length. 52 - 33 : (=48-15) remaining length to reach 48 58 - 10 : (=280 - 15 - 255) ) remaining length to reach 280 [all …]
|
D | lz4_Frame_format.md | 8 Permission is granted to copy and distribute this document 25 The purpose of this document is to define a lossless compressed data format, 40 does not attempt to allow random access to compressed data. 43 to compress data into LZ4 format and/or decompress data from LZ4 format. 49 that conform to the specifications presented here. 50 It doesn’t need to support all options though. 52 A compliant decompressor must be able to decompress 54 that conforms to the specifications presented here. 75 3 to 15 Bytes, to be detailed in its own paragraph, 83 To be detailed in its own paragraph. [all …]
|
D | lz4frame_manual.html | 84 …unsigned dictID; </b>/* Dictionary ID, sent by compressor to help decod… 87 </b><p> makes it possible to set or read frame parameters. 88 Structure must be first init to 0, using memset() or LZ4F_INIT_FRAMEINFO, 89 setting all parameters to default. 90 It's then possible to update selectively some parameters 100 </b><p> makes it possible to supply advanced compression instructions to streaming interface. 101 Structure must be first init to 0, using memset() or LZ4F_INIT_PREFERENCES, 102 setting all parameters to default. 103 All reserved fields must be set to zero. 121 …t structure is optional : you can provide NULL as argument. All preferences will be set to default. [all …]
|
D | lz4_manual.html | 29 It gives full buffer control to user. 40 Each application is free to encode and pass such metadata in whichever way it wants. 46 Embedding metadata is required for compressed data to be self-contained and portable. 53 <pre><b>int LZ4_versionNumber (void); </b>/**< library version number; useful to check dll version… 55 <pre><b>const char* LZ4_versionString (void); </b>/**< library version string; useful to check dl… 64 Reduced memory usage may improve speed, thanks to better cache locality. 74 Compression is guaranteed to succeed if 'dstCapacity' >= LZ4_compressBound(srcSize). 95 … even if the compressed block is maliciously modified to order the decoder to do these actions. 97 …Note 2 : compressedSize and dstCapacity must be provided to the function, the compressed block doe… 98 …The implementation is free to send / store / derive this information in whichever way is most bene… [all …]
|
/lz4-3.4.0-2.7.6/build/ |
D | README.md | 12 #### How to compile lz4 with Visual Studio 17 4. Go to decompressed directory then to `build` then `VS2010` and open `lz4.sln` 18 5. Visual Studio will ask about converting VS2010 project to VS2015 and you should agree. 19 6. Change `Debug` to `Release` and if you have 64-bit Windows change also `Win32` to `x64`. 26 The Visual Studio solution file `lz4.sln` contains many projects that will be compiled to the 27 `build\VS2010\bin\$(Platform)_$(Configuration)` directory. For example `lz4` set to `x64` and 28 `Release` will be compiled to `build\VS2010\bin\x64_Release\lz4.exe`. The solution file contains the 35 - `fuzzer` : Test tool, to check lz4 integrity on target platform 36 - `liblz4` : A static LZ4 library compiled to `liblz4_static.lib` 37 - `liblz4-dll` : A dynamic LZ4 library (DLL) compiled to `liblz4.dll` with the import library `libl… [all …]
|
/lz4-3.4.0-2.7.6/lib/ |
D | README.md | 25 In order to produce compressed data compatible with `lz4` command line utility, 26 it's necessary to use the [official interoperable frame format]. 29 In order to work properly, lz4frame needs all other modules present in `/lib`, 31 So it's necessary to include all `*.c` and `*.h` files present in `/lib`. 36 Definitions which are not guaranteed to remain stable in future versions, 42 Should they be nonetheless needed, it's possible to force their publication 49 The following build macro can be selected to adjust source code behavior at compilation time : 53 …It's also possible to enable or disable it manually, by passing `LZ4_FAST_DEC_LOOP=1` or `0` to th… 58 Set to 65535 by default, which is the maximum value supported by lz4 format. 59 Reducing maximum distance will reduce opportunities for LZ4 to find matches, [all …]
|
D | lz4frame.h | 20 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 35 /* LZ4F is a stand-alone API able to create and decode LZ4 frames 42 * except to extract common constant such as LZ4_VERSION_NUMBER. 112 /* #define LZ4F_ENABLE_OBSOLETE_ENUMS // uncomment to enable obsolete enums */ 171 * makes it possible to set or read frame parameters. 172 * Structure must be first init to 0, using memset() or LZ4F_INIT_FRAMEINFO, 173 * setting all parameters to default. 174 * It's then possible to update selectively some parameters */ 181 …unsigned dictID; /* Dictionary ID, sent by compressor to help decoder s… [all …]
|
D | lz4.h | 21 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 54 It gives full buffer control to user. 65 Each application is free to encode and pass such metadata in whichever way it wants. 71 Embedding metadata is required for compressed data to be self-contained and portable. 95 # define LZ4LIB_API __declspec(dllimport) LZ4LIB_VISIBILITY /* It isn't required but allows to gen… 112 LZ4LIB_API int LZ4_versionNumber (void); /**< library version number; useful to check dll version … 113 LZ4LIB_API const char* LZ4_versionString (void); /**< library version string; useful to check dll… 123 * Reduced memory usage may improve speed, thanks to better cache locality. 137 * Compression is guaranteed to succeed if 'dstCapacity' >= LZ4_compressBound(srcSize). [all …]
|
D | lz4hc.h | 20 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 59 …* Compression is guaranteed to succeed if `dstCapacity >= LZ4_compressBound(srcSize)` (see "lz4.h… 85 * to fit into `targetDstSize` budget. 89 * `srcSizePtr` : on success, *srcSizePtr is updated to indicate how much bytes were read from `src` 107 * starting with LZ4_resetStreamHC_fast() to start a new stream of blocks. 114 using previous blocks as dictionary, to improve compression ratio. 115 …One key assumption is that previous blocks (up to 64 KB) remain read-accessible while compressing … 120 LZ4_createStreamHC() does both, though compression level is set to LZ4HC_CLEVEL_DEFAULT. 130 Invoke LZ4_compress_HC_continue() to compress each successive block. [all …]
|
/lz4-3.4.0-2.7.6/ |
D | NEWS | 3 perf: faster speed with Visual Studio, thanks to @wolfpld and @remittor 9 api : can (de)compress to/from NULL without UBs 15 build: link to user-defined memory functions with LZ4_USER_MEMORY_FUNCTIONS, suggested by Yuriy Lev… 16 build: contrib/cmake_unofficial/ moved to build/cmake/ 17 build: visual/* moved to build/ 33 cli: --version outputs to stdout 45 perf: large decompression speed improvement on x86/x64 (up to +20%) by @djwatson 46 api : changed : _destSize() compression variants are promoted to stable API 102 doc : Updated LZ4 Frame format to v1.6.0, restoring Dictionary-ID field 123 Changed : moved to versioning; package, cli and library have same version number [all …]
|
/lz4-3.4.0-2.7.6/lib/dll/example/ |
D | README.md | 17 By default CLI takes an input file and compresses it to an output file: 22 be improved with commands from `-3` to `-16` but higher levels also have slower 31 Use `cd example` and `make` to build `fullbench-dll` and `fullbench-lib`. 39 are required to compile a project using gcc/MinGW. 40 The dynamic library has to be added to linking options. 51 Open `example\fullbench-dll.sln` to compile `fullbench-dll` that uses a 54 then the solution will upgraded to the current version. 60 are required to compile a project using Visual C++. 62 1. The header files should be added to `Additional Include Directories` that can 64 2. The import library has to be added to `Additional Dependencies` that can [all …]
|
/lz4-3.4.0-2.7.6/contrib/meson/ |
D | README.md | 4 Meson is a build system designed to optimize programmer productivity. 5 It aims to do this by providing simple, out-of-the-box support for 11 ## How to build 13 `cd` to this meson directory (`contrib/meson`) 18 ninja # to build 19 ninja install # to install 22 You might want to install it in staging directory: 28 To configure build options, use:
|
/lz4-3.4.0-2.7.6/contrib/snap/ |
D | README.md | 4 This directory contains the config required to generate a snap package 5 of lz4. Snaps are universal Linux packages that allow you to easily 6 build your application from any source and ship it to any Linux 7 distribution by publishing it to https://snapcraft.io/. A key attribute 15 * ensure snap.snapcraft.yaml is up-to-date e.g. with version info 19 * push snap/* changes to the repo (excluding any crud generated by a build of course) 23 * publish new snap to the snap store 27 * all installed copies of lz4 will be automatically updated to your new version
|
/lz4-3.4.0-2.7.6/.circleci/ |
D | config.yml | 4 # comments in this file to understand the structure of CircleCI 2.0, as the idiom 5 # for configuration has changed substantially in 2.0 to allow arbitrary jobs rather 14 # The script will have to be modified to support parallelism properly 15 # In the meantime, set it to 1. 18 …# CircleCI 2.0 does not support environment variables that refer to each other the same way as 1.0… 19 …ese refer to each other, rewrite them so that they don't or see https://circleci.com/docs/2.0/env-… 25 …# The following configuration line tells CircleCI to use the specified docker image as the runtime… 27 # the 1.0 platform, but we recommend you choose an image more tailored to the needs 30 # To see the list of pre-built images that CircleCI provides for most common languages see 36 …# If you break your build into multiple jobs with workflows, you will probably want to do the pa… [all …]
|
/lz4-3.4.0-2.7.6/.github/ISSUE_TEMPLATE/ |
D | bug_report.md | 3 about: Create a report to help us improve 14 Please describe what you expected to happen. 16 **To Reproduce** 17 Steps to reproduce the behavior: 18 1. Go to '...' 20 3. Scroll down to '....' 22 If applicable, add screenshots to help explain your problem.
|
/lz4-3.4.0-2.7.6/ossfuzz/ |
D | fuzz.h | 7 * The number of bytes of the source to look at when constructing a seed 9 * the data to lz4 functions. Every fuzzer initializes the RNG exactly 20 * the method to use based on the compiler. If testing with UBSAN set 21 * MEM_FORCE_MEMORY_ACCESS=0 to use the standard compliant method. 23 * This is the canonical flag to enable deterministic builds for fuzzing. 24 * Changes to zstd for fuzzing are gated behind this define. 25 * It is recommended to define this when building zstd for fuzzing.
|