Classes | Macros | Functions | Variables
lz4s.c File Reference
#include "roslz4/lz4s.h"
#include "xxhash.h"
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for lz4s.c:

Go to the source code of this file.

Classes

struct  stream_state
 

Macros

#define DEBUG(...)
 
#define LZ4_COMPRESS_DEFAULT   LZ4_compress_limitedOutput
 
#define LZ4_VERSION   (LZ4_VERSION_MAJOR * 100 * 100 + LZ4_VERSION_MINOR * 100 + LZ4_VERSION_RELEASE)
 

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
 

Macro Definition Documentation

#define DEBUG (   ...)

Definition at line 47 of file lz4s.c.

#define LZ4_COMPRESS_DEFAULT   LZ4_compress_limitedOutput

Definition at line 57 of file lz4s.c.

#define LZ4_VERSION   (LZ4_VERSION_MAJOR * 100 * 100 + LZ4_VERSION_MINOR * 100 + LZ4_VERSION_RELEASE)

Definition at line 53 of file lz4s.c.

Function Documentation

void advanceInput ( roslz4_stream str,
int  nbytes 
)

Definition at line 114 of file lz4s.c.

void advanceOutput ( roslz4_stream str,
int  nbytes 
)

Definition at line 120 of file lz4s.c.

int bufferToOutput ( roslz4_stream str)

Definition at line 180 of file lz4s.c.

int decompressBlock ( roslz4_stream str)

Definition at line 479 of file lz4s.c.

void fillUInt32 ( roslz4_stream str,
uint32_t *  dest_val,
int *  offset 
)

Definition at line 126 of file lz4s.c.

int inputToBuffer ( roslz4_stream str)

Definition at line 224 of file lz4s.c.

int min ( int  a,
int  b 
)

Definition at line 83 of file lz4s.c.

int processHeader ( roslz4_stream str)

Definition at line 368 of file lz4s.c.

int readBlock ( roslz4_stream str)

Definition at line 463 of file lz4s.c.

int readBlockSize ( roslz4_stream str)

Definition at line 443 of file lz4s.c.

int readChecksum ( roslz4_stream str)

Definition at line 521 of file lz4s.c.

uint32_t readUInt32 ( unsigned char *  buffer)

Definition at line 71 of file lz4s.c.

int roslz4_blockSizeFromIndex ( int  block_id)

Definition at line 309 of file lz4s.c.

int roslz4_buffToBuffCompress ( char *  input,
unsigned int  input_size,
char *  output,
unsigned int *  output_size,
int  block_size_id 
)

Definition at line 575 of file lz4s.c.

int roslz4_buffToBuffDecompress ( char *  input,
unsigned int  input_size,
char *  output,
unsigned int *  output_size 
)

Definition at line 609 of file lz4s.c.

int roslz4_compress ( roslz4_stream str,
int  action 
)

Definition at line 319 of file lz4s.c.

void roslz4_compressEnd ( roslz4_stream str)

Definition at line 355 of file lz4s.c.

int roslz4_compressStart ( roslz4_stream str,
int  block_size_id 
)

Definition at line 313 of file lz4s.c.

int roslz4_decompress ( roslz4_stream str)

Definition at line 538 of file lz4s.c.

void roslz4_decompressEnd ( roslz4_stream str)

Definition at line 569 of file lz4s.c.

int roslz4_decompressStart ( roslz4_stream str)

Definition at line 361 of file lz4s.c.

int streamResizeBuffer ( roslz4_stream str,
int  block_size_id 
)

Definition at line 279 of file lz4s.c.

int streamStateAlloc ( roslz4_stream str)

Definition at line 245 of file lz4s.c.

void streamStateFree ( roslz4_stream str)

Definition at line 295 of file lz4s.c.

int writeEOS ( roslz4_stream str)

Definition at line 159 of file lz4s.c.

int writeHeader ( roslz4_stream str)

Definition at line 134 of file lz4s.c.

void writeUInt32 ( unsigned char *  buffer,
uint32_t  val 
)

Definition at line 76 of file lz4s.c.

Variable Documentation

const uint8_t k1Bits = 0x01

Definition at line 65 of file lz4s.c.

const uint8_t k2Bits = 0x03

Definition at line 66 of file lz4s.c.

const uint8_t k3Bits = 0x07

Definition at line 67 of file lz4s.c.

const uint8_t k4Bits = 0x0F

Definition at line 68 of file lz4s.c.

const uint8_t k8Bits = 0xFF

Definition at line 69 of file lz4s.c.

const uint32_t kEndOfStream = 0x00000000

Definition at line 62 of file lz4s.c.

const uint32_t kMagicNumber = 0x184D2204

Definition at line 61 of file lz4s.c.



roslz4
Author(s): Ben Charrow
autogenerated on Sun Feb 3 2019 03:29:46