#include <kccompress.h>
Public Types | |
enum | Mode { RAW, DEFLATE, GZIP } |
Compression modes. More... | |
Static Public Member Functions | |
static char * | compress (Mode mode, const void *buf, size_t size, size_t *sp) |
Compress a serial data. | |
static char * | decompress (Mode mode, const void *buf, size_t size, size_t *sp) |
Decompress a serial data. |
Zlib compressor.
static char* kyotocabinet::Zlib::compress | ( | Mode | mode, | |
const void * | buf, | |||
size_t | size, | |||
size_t * | sp | |||
) | [static] |
Compress a serial data.
mode | the compression mode. | |
buf | the input buffer. | |
size | the size of the input buffer. | |
sp | the pointer to the variable into which the size of the region of the return value is assigned. |
static char* kyotocabinet::Zlib::decompress | ( | Mode | mode, | |
const void * | buf, | |||
size_t | size, | |||
size_t * | sp | |||
) | [static] |
Decompress a serial data.
mode | the compression mode. | |
buf | the input buffer. | |
size | the size of the input buffer. | |
sp | the pointer to the variable into which the size of the region of the return value is assigned. |