Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_compressor.c
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | struct compressor { | ||||
void *priv; | void *priv; | ||||
void *arg; | void *arg; | ||||
}; | }; | ||||
SET_DECLARE(compressors, struct compressor_methods); | SET_DECLARE(compressors, struct compressor_methods); | ||||
#ifdef GZIO | #ifdef GZIO | ||||
#include <sys/crc32.h> | |||||
#include <sys/zutil.h> | #include <sys/zutil.h> | ||||
struct gz_stream { | struct gz_stream { | ||||
uint8_t *gz_buffer; /* output buffer */ | uint8_t *gz_buffer; /* output buffer */ | ||||
size_t gz_bufsz; /* output buffer size */ | size_t gz_bufsz; /* output buffer size */ | ||||
off_t gz_off; /* offset into the output stream */ | off_t gz_off; /* offset into the output stream */ | ||||
uint32_t gz_crc; /* stream CRC32 */ | uint32_t gz_crc; /* stream CRC32 */ | ||||
z_stream gz_stream; /* zlib state */ | z_stream gz_stream; /* zlib state */ | ||||
▲ Show 20 Lines • Show All 483 Lines • Show Last 20 Lines |