Searched full:a (Results 1 – 25 of 92) sorted by relevance
1234
11 LZ4 is an LZ77-type compressor with a fixed, byte-oriented encoding.30 A sequence is a suite of literals (not-compressed bytes),31 followed by a match copy.33 Each sequence starts with a `token`.34 The `token` is a one byte value, separated into two 4-bits fields.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.47 (Side note : this is why a not-compressible input block is expanded by 0.4%).49 Example 1 : A literal length of 48 will be represented as :54 Example 2 : A literal length of 280 will be represented as :[all …]
9 <a name="Contents"></a><h2>Contents</h2>11 <li><a href="#Chapter1">Introduction</a></li>12 <li><a href="#Chapter2">Compiler specifics</a></li>13 <li><a href="#Chapter3">Error management</a></li>14 <li><a href="#Chapter4">Frame compression types</a></li>15 <li><a href="#Chapter5">Simple compression function</a></li>16 <li><a href="#Chapter6">Advanced compression functions</a></li>17 <li><a href="#Chapter7">Resource Management</a></li>18 <li><a href="#Chapter8">Compression</a></li>19 <li><a href="#Chapter9">Decompression functions</a></li>[all …]
9 <a name="Contents"></a><h2>Contents</h2>11 <li><a href="#Chapter1">Introduction</a></li>12 <li><a href="#Chapter2">Version</a></li>13 <li><a href="#Chapter3">Tuning parameter</a></li>14 <li><a href="#Chapter4">Simple Functions</a></li>15 <li><a href="#Chapter5">Advanced Functions</a></li>16 <li><a href="#Chapter6">Streaming Compression Functions</a></li>17 <li><a href="#Chapter7">Streaming Decompression Functions</a></li>18 <li><a href="#Chapter8">Experimental section</a></li>19 <li><a href="#Chapter9">Private Definitions</a></li>[all …]
25 The purpose of this document is to define a lossless compressed data format,33 using only an a priori bounded amount of intermediate storage,44 The text of the specification assumes a basic background in programming48 a compliant compressor must produce data sets52 A compliant decompressor must be able to decompress56 Whenever it does not support a specific parameter within the compressed stream,57 it must produce a non-ambiguous error code95 digesting the original (decoded) data as input, and a seed of zero.117 within a single stream or file130 The descriptor uses a minimum of 3 bytes,[all …]
33 For example, if you distribute copies of such a program, whether34 gratis or for a fee, you must give the recipients all the rights that51 patents. We wish to avoid the danger that redistributors of a free63 a notice placed by the copyright holder saying it may be distributed65 refers to any such program or work, and a "work based on the Program"67 that is to say, a work containing the Program or a portion of it,75 is covered only if its contents constitute a work based on the84 and give any other recipients of the Program a copy of this License87 You may charge a fee for the physical act of transferring a copy, and88 you may at your option offer warranty protection in exchange for a fee.[all …]
23 \fBlz4\fR supports a command line syntax similar \fIbut not identical\fR to \fBgzip(1)\fR\. Differe…26 \fBlz4\fR compresses a single file by default (see \fB\-m\fR for multiple files)38 \fBlz4\fR shows real\-time notification statistics during compression or decompression of a single …44 … \fB\-c\fR ensures that output will be \fBstdout\fR\. Conversely, providing a destination name, or…52 …s become disabled by default (use \fB\-v\fR to enable them)\. This mode has a behavior which more …66 …\.lz4\fR files as is\. \fBlz4\fR will decompress such files as if they were a single \fB\.lz4\fR f…85 … to \fB\-dc\fR\. Long commands cannot be concatenated\. They must be clearly separated by a space\.88 When multiple contradictory commands are issued on a same command line, only the latest one will be…94 …R implies \fB\-\-decompress\fR), nor from the input file name (for example, a file extension \fB\.…120 …tting overrides compression level if one was set previously\. Similarly, if a compression level is…[all …]
31 `lz4` supports a command line syntax similar _but not identical_ to `gzip(1)`.34 * `lz4` compresses a single file by default (see `-m` for multiple files)39 during compression or decompression of a single file49 Conversely, providing a destination name, or using `-m`57 This mode has a behavior which more closely mimics `gzip` command line,67 `lz4` will decompress such files as if they were a single `.lz4` file.84 Long commands cannot be concatenated. They must be clearly separated by a space.88 When multiple contradictory commands are issued on a same command line,99 (for example, a file extension `.lz4` implies `--decompress` by default).136 Similarly, if a compression level is set after `--fast`, it overrides it.[all …]
30 // Below we will have a Compression and Decompression section to demonstrate. in main()31 // There are a few important notes before we start: in main()33 // Read lz4.h if you're unsure what a given code means. 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()44 …// LZ4 provides a function that will tell you the maximum size of compressed output based on input… in main()56 …run_screaming("A 0 or negative result from LZ4_compress_default() indicates a failure trying to co… in main()60 …// Not only does a positive return_value mean success, the value returned == the number of bytes r… in main()71 // but in a real-world scenario, metadata must be transmitted to the decompression side. in main()75 // First, let's create a *new_src location of size src_size since we know that value. in main()[all …]
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the17 # You should have received a copy of the GNU General Public License along46 $(LZ4DIR)/liblz4.a: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c $(LZ4DIR)/lz4frame.c $(LZ4DIR)/lz4.h $(LZ4DIR…47 $(MAKE) -C $(LZ4DIR) liblz4.a49 printVersion: printVersion.c $(LZ4DIR)/liblz4.a52 doubleBuffer: blockStreaming_doubleBuffer.c $(LZ4DIR)/liblz4.a55 dictionaryRandomAccess: dictionaryRandomAccess.c $(LZ4DIR)/liblz4.a58 ringBuffer : blockStreaming_ringBuffer.c $(LZ4DIR)/liblz4.a61 ringBufferHC: HCStreaming_ringBuffer.c $(LZ4DIR)/liblz4.a64 lineCompress: blockStreaming_lineByLine.c $(LZ4DIR)/liblz4.a[all …]
5 …* Description: A program to demonstrate the various compression functions involved in when using L…19 …* Despite its name, it's not a "fast" version of compression. It simply decides if…20 …* allocates memory on the heap for a struct or creates the struct directly on the s…24 …* LZ4_compress_generic should be invoked; specifically: can the source fit into a s…29 …s, but you really need to know what you're doing AND what you're asking lz4 to do! You also need a41 …* Again, despite its name it's not a "fast" version of decompression. It simply f…45 …rectly is not advised, period. Furthermore, it is a static inline function in lz4.c, so there isn…49 …4_decompress_safe() function protects against malicious (user) input. If you are using data from a50 …urce, or if your program is the producer (P) as well as its consumer (C) in a PC or MPMC setup, yo…76 /* Create a crude set of test IDs so we can switch on them later (Can't switch() on a char[] or ch…[all …]
22 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT56 - a single step (described as Simple Functions)57 - a single step, reusing a context (described in Advanced Functions)61 Decompressing such a compressed block requires additional metadata.70 Frames bundle both blocks and metadata in a specified manner.72 Frame format is delivered through a companion API, declared in lz4frame.h.81 * Enable exporting of functions when building a Windows DLL95 …_VISIBILITY /* It isn't required but allows to generate better code, saving a function pointer loa…138 * It also runs faster, so it's a recommended setting.139 * If the function cannot compress 'src' into a more limited 'dst' budget,[all …]
21 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT77 …* Memory segment must be aligned on 8-bytes boundaries (which a normal malloc() should do properl…106 * A same state can be used multiple times consecutively,107 * starting with LZ4_resetStreamHC_fast() to start a new stream of blocks.122 Selecting the compression level can be done with LZ4_resetStreamHC_fast() (starts a new stream)127 After reset, a first "fictional block" can be designated as initial dictionary,147 it's possible to copy the last blocks into a more stable memory space, using LZ4_saveDictHC().150 After completing a streaming compression,151 it's possible to start a new stream of blocks, using the same LZ4_streamHC_t state,232 * This can be used to allocate statically, on state, or as part of a larger structure.[all …]
21 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT35 /* LZ4F is a stand-alone API able to create and decode LZ4 frames68 * Enable exporting of functions when building a Windows DLL105 LZ4FLIB_API unsigned LZ4F_isError(LZ4F_errorCode_t code); /**< tells when a function result is…182 …LZ4F_blockChecksum_t blockChecksumFlag; /* 1: each block followed by a checksum of block's com…218 * Compress an entire srcBuffer into a valid LZ4 frame.246 …* The first thing to do is to create a compressionContext object, which will be used in all compre…247 * This is achieved using LZ4F_createCompressionContext(), which takes as argument a version.249 * The function will provide a pointer to a fully allocated LZ4F_cctx object.262 /* Size in bytes of a block header in little-endian format. Highest bit indicates if block data is …[all …]
22 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT40 Comparison (single thread, Windows Seven 32 bits, using SMHasher on a Core 2 Duo @3GHz)45 MumurHash 3a 2.7 GB/s 10 Austin Appleby56 Q.Score is a measure of quality of the hash function.58 10 is a perfect score.60 A 64-bit version, named XXH64, is available since r35.93 * It's not useful to compile and link it as a separate module.125 # define XXH_CAT(A,B) A##B argument126 # define XXH_NAME2(A,B) XXH_CAT(A,B) argument188 * Start a new hash by initializing state with a seed, using XXH*_reset().[all …]
51 - `LZ4_FAST_DEC_LOOP` : this triggers a speed optimized decompression loop, more powerful on modern…60 hence will produce a worse compression ratio.61 …However, a smaller max distance can allow compatibility with specific decoders using limited memor…64 - `LZ4_DISABLE_DEPRECATE_WARNINGS` : invoking a deprecated function will make the compiler generate…66 Should this be a problem, it's generally possible to make the compiler ignore these warnings,85 passed as argument to become a compression state is suitably aligned.91 lz4 source code can be amalgamated into a single file.110 `dll\liblz4.dll` are required to compile a project using gcc/MinGW.112 It means that if a project that uses LZ4 consists of a single `test-dll.c`
15 …11-00A0C91BC942}") = "datagen", "datagen\datagen.vcxproj", "{D745AE2F-596A-403A-9B91-81A8C6779243}"78 {D745AE2F-596A-403A-9B91-81A8C6779243}.Debug|Win32.ActiveCfg = Debug|Win3279 {D745AE2F-596A-403A-9B91-81A8C6779243}.Debug|Win32.Build.0 = Debug|Win3280 {D745AE2F-596A-403A-9B91-81A8C6779243}.Debug|x64.ActiveCfg = Debug|x6481 {D745AE2F-596A-403A-9B91-81A8C6779243}.Debug|x64.Build.0 = Debug|x6482 {D745AE2F-596A-403A-9B91-81A8C6779243}.Release|Win32.ActiveCfg = Release|Win3283 {D745AE2F-596A-403A-9B91-81A8C6779243}.Release|Win32.Build.0 = Release|Win3284 {D745AE2F-596A-403A-9B91-81A8C6779243}.Release|x64.ActiveCfg = Release|x6485 {D745AE2F-596A-403A-9B91-81A8C6779243}.Release|x64.Build.0 = Release|x64
4 This directory contains the config required to generate a snap package7 distribution by publishing it to https://snapcraft.io/. A key attribute8 of a snap package is that it is (ideally) confined such that it9 executes within a controlled environmenti with all its dependencies11 package on the system (with a couple of minor exceptions).19 * push snap/* changes to the repo (excluding any crud generated by a build of course)
15 …11-00A0C91BC942}") = "datagen", "datagen\datagen.vcxproj", "{D745AE2F-596A-403A-9B91-81A8C6779243}"72 {D745AE2F-596A-403A-9B91-81A8C6779243}.Debug|Win32.ActiveCfg = Debug|Win3273 {D745AE2F-596A-403A-9B91-81A8C6779243}.Debug|Win32.Build.0 = Debug|Win3274 {D745AE2F-596A-403A-9B91-81A8C6779243}.Debug|x64.ActiveCfg = Debug|x6475 {D745AE2F-596A-403A-9B91-81A8C6779243}.Debug|x64.Build.0 = Debug|x6476 {D745AE2F-596A-403A-9B91-81A8C6779243}.Release|Win32.ActiveCfg = Release|Win3277 {D745AE2F-596A-403A-9B91-81A8C6779243}.Release|Win32.Build.0 = Release|Win3278 {D745AE2F-596A-403A-9B91-81A8C6779243}.Release|x64.ActiveCfg = Release|x6479 {D745AE2F-596A-403A-9B91-81A8C6779243}.Release|x64.Build.0 = Release|x64
1 gen_manual - a program for automatic generation of manual from source code6 This simple C++ program generates a single-page HTML manual from `lz4.h`.9 - comments of type `/*!` mean: this is a function declaration; switch comments with declarations10 - comments of type `/**` and `/*-` mean: this is a comment; use a `<H2>` header for the first line11 - comments of type `/*=` and `/**=` mean: use a `<H3>` header and show also all functions until fir…
32 #define MIN(a,b) ( (a) < (b) ? (a) : (b) ) argument33 #define MAX(a,b) ( (a) > (b) ? (a) : (b) ) argument60 * Deterministically constructs a seed based on the fuzz input.84 /* Returns a random numer in the range [min, max]. */
32 `fullbench-dll` uses a dynamic LZ4 library from the `dll` directory.33 `fullbench-lib` uses a static LZ4 library from the `lib` directory.39 are required to compile a project using gcc/MinGW.41 It means that if a project that uses LZ4 consists of a single `test-dll.c`51 Open `example\fullbench-dll.sln` to compile `fullbench-dll` that uses a60 are required to compile a project using Visual C++.66 If one will provide only the name `liblz4.lib` without a full path to the library
1 # This configuration was automatically generated from a CircleCI 1.0 config.7 # configuration as a reference rather than using it in production, though in most23 …# In CircleCI 1.0 we used a pre-configured image with a large number of languages and other packag…26 # We have selected a pre-built image that mirrors the build environment we use on28 # of each job. For more information on choosing an image (or alternatively using a29 # VM instead of a container) see https://circleci.com/docs/2.0/executor-types/37 …In 1.0 we did this implicitly. In 2.0 you can choose where in the course of a job your code should…44 # This would typically be a build job when using workflows, possibly combined with build
10 **Is your feature request related to a problem? Please describe.**11 A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]14 A clear and concise description of what you want to happen.17 A clear and concise description of any alternative solutions or features you've considered.