Kyoto Cabinet
|
#include <kccompress.h>
Public Types | |
enum | Mode { RAW, CRC, SHA } |
Compression modes. More... | |
Static Public Member Functions | |
static char * | compress (const void *buf, size_t size, size_t *sp, Mode mode=RAW) |
Compress a serial data. | |
static char * | decompress (const void *buf, size_t size, size_t *sp, Mode mode=RAW) |
Decompress a serial data. | |
static uint32_t | calculate_crc (const void *buf, size_t size, uint32_t seed=0) |
Calculate the CRC32 checksum of a serial data. |
LZMA compressor.
static char* kyotocabinet::LZMA::compress | ( | const void * | buf, |
size_t | size, | ||
size_t * | sp, | ||
Mode | mode = RAW |
||
) | [static] |
Compress a serial data.
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. |
mode | the compression mode. |
static char* kyotocabinet::LZMA::decompress | ( | const void * | buf, |
size_t | size, | ||
size_t * | sp, | ||
Mode | mode = RAW |
||
) | [static] |
Decompress a serial data.
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. |
mode | the compression mode. |
static uint32_t kyotocabinet::LZMA::calculate_crc | ( | const void * | buf, |
size_t | size, | ||
uint32_t | seed = 0 |
||
) | [static] |
Calculate the CRC32 checksum of a serial data.
buf | the input buffer. |
size | the size of the input buffer. |
seed | the cyclic seed value. |