|
Kyoto Cabinet
|
#include <kccompress.h>
Public Types | |
| enum | Mode { RAW, CRC } |
| 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. | |
LZO compressor.
| static char* kyotocabinet::LZO::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::LZO::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::LZO::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. |
1.7.6.1