Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
lzo.h File Reference

Go to the source code of this file.

Macros

#define LZO1X_MEM_COMPRESS   (16384 * sizeof(unsigned char *))
 
#define LZO1X_1_MEM_COMPRESS   LZO1X_MEM_COMPRESS
 
#define lzo1x_worst_compress(x)   ((x) + ((x) / 16) + 64 + 3)
 
#define LZO_E_OK   0
 
#define LZO_E_ERROR   (-1)
 
#define LZO_E_OUT_OF_MEMORY   (-2)
 
#define LZO_E_NOT_COMPRESSIBLE   (-3)
 
#define LZO_E_INPUT_OVERRUN   (-4)
 
#define LZO_E_OUTPUT_OVERRUN   (-5)
 
#define LZO_E_LOOKBEHIND_OVERRUN   (-6)
 
#define LZO_E_EOF_NOT_FOUND   (-7)
 
#define LZO_E_INPUT_NOT_CONSUMED   (-8)
 
#define LZO_E_NOT_YET_IMPLEMENTED   (-9)
 

Functions

int lzo1x_1_compress (const unsigned char *src, size_t src_len, unsigned char *dst, size_t *dst_len, void *wrkmem)
 
int lzo1x_decompress_safe (const unsigned char *src, size_t src_len, unsigned char *dst, size_t *dst_len)
 

Macro Definition Documentation

#define LZO1X_1_MEM_COMPRESS   LZO1X_MEM_COMPRESS

Definition at line 18 of file lzo.h.

#define LZO1X_MEM_COMPRESS   (16384 * sizeof(unsigned char *))

Definition at line 17 of file lzo.h.

#define lzo1x_worst_compress (   x)    ((x) + ((x) / 16) + 64 + 3)

Definition at line 20 of file lzo.h.

#define LZO_E_EOF_NOT_FOUND   (-7)

Definition at line 40 of file lzo.h.

#define LZO_E_ERROR   (-1)

Definition at line 34 of file lzo.h.

#define LZO_E_INPUT_NOT_CONSUMED   (-8)

Definition at line 41 of file lzo.h.

#define LZO_E_INPUT_OVERRUN   (-4)

Definition at line 37 of file lzo.h.

#define LZO_E_LOOKBEHIND_OVERRUN   (-6)

Definition at line 39 of file lzo.h.

#define LZO_E_NOT_COMPRESSIBLE   (-3)

Definition at line 36 of file lzo.h.

#define LZO_E_NOT_YET_IMPLEMENTED   (-9)

Definition at line 42 of file lzo.h.

#define LZO_E_OK   0

Definition at line 33 of file lzo.h.

#define LZO_E_OUT_OF_MEMORY   (-2)

Definition at line 35 of file lzo.h.

#define LZO_E_OUTPUT_OVERRUN   (-5)

Definition at line 38 of file lzo.h.

Function Documentation

int lzo1x_1_compress ( const unsigned char src,
size_t  src_len,
unsigned char dst,
size_t dst_len,
void wrkmem 
)

Definition at line 176 of file lzo1x_compress.c.

int lzo1x_decompress_safe ( const unsigned char src,
size_t  src_len,
unsigned char dst,
size_t dst_len 
)

Definition at line 30 of file lzo1x_decompress.c.