#include "roslz4/lz4s.h"
#include "xxhash.h"
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
|
void | advanceInput (roslz4_stream *str, int nbytes) |
|
void | advanceOutput (roslz4_stream *str, int nbytes) |
|
int | bufferToOutput (roslz4_stream *str) |
|
int | decompressBlock (roslz4_stream *str) |
|
void | fillUInt32 (roslz4_stream *str, uint32_t *dest_val, int *offset) |
|
int | inputToBuffer (roslz4_stream *str) |
|
int | min (int a, int b) |
|
int | processHeader (roslz4_stream *str) |
|
int | readBlock (roslz4_stream *str) |
|
int | readBlockSize (roslz4_stream *str) |
|
int | readChecksum (roslz4_stream *str) |
|
uint32_t | readUInt32 (unsigned char *buffer) |
|
int | roslz4_blockSizeFromIndex (int block_id) |
|
int | roslz4_buffToBuffCompress (char *input, unsigned int input_size, char *output, unsigned int *output_size, int block_size_id) |
|
int | roslz4_buffToBuffDecompress (char *input, unsigned int input_size, char *output, unsigned int *output_size) |
|
int | roslz4_compress (roslz4_stream *str, int action) |
|
void | roslz4_compressEnd (roslz4_stream *str) |
|
int | roslz4_compressStart (roslz4_stream *str, int block_size_id) |
|
int | roslz4_decompress (roslz4_stream *str) |
|
void | roslz4_decompressEnd (roslz4_stream *str) |
|
int | roslz4_decompressStart (roslz4_stream *str) |
|
int | streamResizeBuffer (roslz4_stream *str, int block_size_id) |
|
int | streamStateAlloc (roslz4_stream *str) |
|
void | streamStateFree (roslz4_stream *str) |
|
int | writeEOS (roslz4_stream *str) |
|
int | writeHeader (roslz4_stream *str) |
|
void | writeUInt32 (unsigned char *buffer, uint32_t val) |
|
◆ DEBUG
◆ LZ4_COMPRESS_DEFAULT
#define LZ4_COMPRESS_DEFAULT LZ4_compress_limitedOutput |
◆ LZ4_VERSION
#define LZ4_VERSION (LZ4_VERSION_MAJOR * 100 * 100 + LZ4_VERSION_MINOR * 100 + LZ4_VERSION_RELEASE) |
◆ advanceInput()
◆ advanceOutput()
◆ bufferToOutput()
◆ decompressBlock()
◆ fillUInt32()
void fillUInt32 |
( |
roslz4_stream * |
str, |
|
|
uint32_t * |
dest_val, |
|
|
int * |
offset |
|
) |
| |
◆ inputToBuffer()
◆ min()
◆ processHeader()
◆ readBlock()
◆ readBlockSize()
◆ readChecksum()
◆ readUInt32()
uint32_t readUInt32 |
( |
unsigned char * |
buffer | ) |
|
◆ roslz4_blockSizeFromIndex()
int roslz4_blockSizeFromIndex |
( |
int |
block_id | ) |
|
◆ roslz4_buffToBuffCompress()
int roslz4_buffToBuffCompress |
( |
char * |
input, |
|
|
unsigned int |
input_size, |
|
|
char * |
output, |
|
|
unsigned int * |
output_size, |
|
|
int |
block_size_id |
|
) |
| |
◆ roslz4_buffToBuffDecompress()
int roslz4_buffToBuffDecompress |
( |
char * |
input, |
|
|
unsigned int |
input_size, |
|
|
char * |
output, |
|
|
unsigned int * |
output_size |
|
) |
| |
◆ roslz4_compress()
◆ roslz4_compressEnd()
◆ roslz4_compressStart()
int roslz4_compressStart |
( |
roslz4_stream * |
str, |
|
|
int |
block_size_id |
|
) |
| |
◆ roslz4_decompress()
◆ roslz4_decompressEnd()
◆ roslz4_decompressStart()
◆ streamResizeBuffer()
int streamResizeBuffer |
( |
roslz4_stream * |
str, |
|
|
int |
block_size_id |
|
) |
| |
◆ streamStateAlloc()
◆ streamStateFree()
◆ writeEOS()
◆ writeHeader()
◆ writeUInt32()
void writeUInt32 |
( |
unsigned char * |
buffer, |
|
|
uint32_t |
val |
|
) |
| |
◆ k1Bits
const uint8_t k1Bits = 0x01 |
◆ k2Bits
const uint8_t k2Bits = 0x03 |
◆ k3Bits
const uint8_t k3Bits = 0x07 |
◆ k4Bits
const uint8_t k4Bits = 0x0F |
◆ k8Bits
const uint8_t k8Bits = 0xFF |
◆ kEndOfStream
const uint32_t kEndOfStream = 0x00000000 |
◆ kMagicNumber
const uint32_t kMagicNumber = 0x184D2204 |