FreeBSD ZFS
The Zettabyte File System
Data Structures | Typedefs | Functions | Variables

sys/zio_compress.h File Reference

#include <sys/zio.h>
Include dependency graph for zio_compress.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  zio_compress_info
 Information about each compression function. More...

Typedefs

typedef size_t zio_compress_func_t (void *src, void *dst, size_t s_len, size_t d_len, int)
 Common signature for all zio compress functions.
typedef int zio_decompress_func_t (void *src, void *dst, size_t s_len, size_t d_len, int)
 Common signature for all zio decompress functions.
typedef struct zio_compress_info zio_compress_info_t
 Information about each compression function.

Functions

size_t lzjb_compress (void *src, void *dst, size_t s_len, size_t d_len, int level)
int lzjb_decompress (void *src, void *dst, size_t s_len, size_t d_len, int level)
size_t gzip_compress (void *src, void *dst, size_t s_len, size_t d_len, int level)
int gzip_decompress (void *src, void *dst, size_t s_len, size_t d_len, int level)
size_t zle_compress (void *src, void *dst, size_t s_len, size_t d_len, int level)
int zle_decompress (void *src, void *dst, size_t s_len, size_t d_len, int level)
size_t zio_compress_data (enum zio_compress c, void *src, void *dst, size_t s_len)
int zio_decompress_data (enum zio_compress c, void *src, void *dst, size_t s_len, size_t d_len)

Variables

zio_compress_info_t zio_compress_table [ZIO_COMPRESS_FUNCTIONS]

Typedef Documentation

typedef size_t zio_compress_func_t(void *src, void *dst, size_t s_len, size_t d_len, int)

Common signature for all zio compress functions.

Definition at line 39 of file zio_compress.h.

Information about each compression function.

typedef int zio_decompress_func_t(void *src, void *dst, size_t s_len, size_t d_len, int)

Common signature for all zio decompress functions.

Definition at line 44 of file zio_compress.h.


Function Documentation

size_t gzip_compress ( void *  src,
void *  dst,
size_t  s_len,
size_t  d_len,
int  level 
)

Definition at line 40 of file gzip.c.

int gzip_decompress ( void *  src,
void *  dst,
size_t  s_len,
size_t  d_len,
int  level 
)

Definition at line 59 of file gzip.c.

size_t lzjb_compress ( void *  src,
void *  dst,
size_t  s_len,
size_t  d_len,
int  level 
)

Definition at line 53 of file lzjb.c.

int lzjb_decompress ( void *  src,
void *  dst,
size_t  s_len,
size_t  d_len,
int  level 
)

Definition at line 101 of file lzjb.c.

size_t zio_compress_data ( enum zio_compress  c,
void *  src,
void *  dst,
size_t  s_len 
)

Definition at line 72 of file zio_compress.c.

int zio_decompress_data ( enum zio_compress  c,
void *  src,
void *  dst,
size_t  s_len,
size_t  d_len 
)

Definition at line 123 of file zio_compress.c.

size_t zle_compress ( void *  src,
void *  dst,
size_t  s_len,
size_t  d_len,
int  level 
)

Definition at line 38 of file zle.c.

int zle_decompress ( void *  src,
void *  dst,
size_t  s_len,
size_t  d_len,
int  level 
)

Definition at line 68 of file zle.c.


Variable Documentation

zio_compress_info_t zio_compress_table[ZIO_COMPRESS_FUNCTIONS]

Definition at line 37 of file zio_compress.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines