NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
lz4.c File Reference

LZ4 compression. More...

#include "config.h"
#include <stddef.h>
#include <lz4.h>
#include "private.h"
#include "mutt/lib.h"
#include "lib.h"
+ Include dependency graph for lz4.c:

Go to the source code of this file.

Data Structures

struct  ComprLz4Ctx
 Private Lz4 Compression Context. More...
 

Macros

#define MIN_COMP_LEVEL   1
 Minimum compression level for lz4. More...
 
#define MAX_COMP_LEVEL   12
 Maximum compression level for lz4. More...
 

Functions

static void * compr_lz4_open (short level)
 Implements ComprOps::open() -. More...
 
static void * compr_lz4_compress (void *cctx, const char *data, size_t dlen, size_t *clen)
 Implements ComprOps::compress() -. More...
 
static void * compr_lz4_decompress (void *cctx, const char *cbuf, size_t clen)
 Implements ComprOps::decompress() -. More...
 
static void compr_lz4_close (void **cctx)
 Implements ComprOps::close() -. More...
 

Detailed Description

LZ4 compression.

Authors
  • Tino Reichardt

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file lz4.c.

Macro Definition Documentation

◆ MIN_COMP_LEVEL

#define MIN_COMP_LEVEL   1

Minimum compression level for lz4.

Definition at line 37 of file lz4.c.

◆ MAX_COMP_LEVEL

#define MAX_COMP_LEVEL   12

Maximum compression level for lz4.

Definition at line 38 of file lz4.c.