#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.
Classes | |
struct | stream_state |
Defines | |
#define | DEBUG(...) |
Functions | |
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) |
Variables | |
const uint8_t | k1Bits = 0x01 |
const uint8_t | k2Bits = 0x03 |
const uint8_t | k3Bits = 0x07 |
const uint8_t | k4Bits = 0x0F |
const uint8_t | k8Bits = 0xFF |
const uint32_t | kEndOfStream = 0x00000000 |
const uint32_t | kMagicNumber = 0x184D2204 |
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 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 | ||
) |
const uint32_t kEndOfStream = 0x00000000 |
const uint32_t kMagicNumber = 0x184D2204 |