SyTen
lz4_filter.cpp File Reference

Implementation for inc/util/lz4_filter.h. More...

#include <liblz4/lz4.h>
#include "inc/util/lz4_filter.h"
#include <limits>
#include <cstring>
#include "inc/util/macros.h"
+ Include dependency graph for lz4_filter.cpp:

Namespaces

 syten
 Syten namespace.
 
 syten::LZ4
 Namespace for implementation of LZ4 Boost iostream filter.
 

Macros

#define LZ4_MIN_PERCENT   90
 Minimal expected compression. More...
 

Functions

int syten::LZ4::attempt_compression (const char *src_begin, char *out_begin, int src_size, int max_out_size)
 Attempts compression of src_size bytes, starting at src_begin, into a buffer out_begin of size max_out_size. More...
 

Detailed Description

Implementation for inc/util/lz4_filter.h.