Classes | Defines | 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

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

Define Documentation

#define DEBUG (   ...)

Definition at line 47 of file lz4s.c.


Function Documentation

void advanceInput ( roslz4_stream str,
int  nbytes 
)

Definition at line 104 of file lz4s.c.

void advanceOutput ( roslz4_stream str,
int  nbytes 
)

Definition at line 110 of file lz4s.c.

int bufferToOutput ( roslz4_stream str)

Definition at line 170 of file lz4s.c.

Definition at line 469 of file lz4s.c.

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

Definition at line 116 of file lz4s.c.

int inputToBuffer ( roslz4_stream str)

Definition at line 214 of file lz4s.c.

int min ( int  a,
int  b 
)

Definition at line 73 of file lz4s.c.

int processHeader ( roslz4_stream str)

Definition at line 358 of file lz4s.c.

int readBlock ( roslz4_stream str)

Definition at line 453 of file lz4s.c.

int readBlockSize ( roslz4_stream str)

Definition at line 433 of file lz4s.c.

int readChecksum ( roslz4_stream str)

Definition at line 511 of file lz4s.c.

uint32_t readUInt32 ( unsigned char *  buffer)

Definition at line 61 of file lz4s.c.

int roslz4_blockSizeFromIndex ( int  block_id)

Definition at line 299 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 565 of file lz4s.c.

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

Definition at line 596 of file lz4s.c.

int roslz4_compress ( roslz4_stream str,
int  action 
)

Definition at line 309 of file lz4s.c.

Definition at line 345 of file lz4s.c.

int roslz4_compressStart ( roslz4_stream str,
int  block_size_id 
)

Definition at line 303 of file lz4s.c.

Definition at line 528 of file lz4s.c.

Definition at line 559 of file lz4s.c.

Definition at line 351 of file lz4s.c.

int streamResizeBuffer ( roslz4_stream str,
int  block_size_id 
)

Definition at line 269 of file lz4s.c.

Definition at line 235 of file lz4s.c.

void streamStateFree ( roslz4_stream str)

Definition at line 285 of file lz4s.c.

int writeEOS ( roslz4_stream str)

Definition at line 149 of file lz4s.c.

int writeHeader ( roslz4_stream str)

Definition at line 124 of file lz4s.c.

void writeUInt32 ( unsigned char *  buffer,
uint32_t  val 
)

Definition at line 66 of file lz4s.c.


Variable Documentation

const uint8_t k1Bits = 0x01

Definition at line 55 of file lz4s.c.

const uint8_t k2Bits = 0x03

Definition at line 56 of file lz4s.c.

const uint8_t k3Bits = 0x07

Definition at line 57 of file lz4s.c.

const uint8_t k4Bits = 0x0F

Definition at line 58 of file lz4s.c.

const uint8_t k8Bits = 0xFF

Definition at line 59 of file lz4s.c.

const uint32_t kEndOfStream = 0x00000000

Definition at line 52 of file lz4s.c.

const uint32_t kMagicNumber = 0x184D2204

Definition at line 51 of file lz4s.c.



roslz4
Author(s): Ben Charrow
autogenerated on Thu Jun 6 2019 21:09:51