Changeset View
Changeset View
Standalone View
Standalone View
contrib/zstd/lib/common/huf.h
Show All 34 Lines | |||||
#define HUF_H_298734234 | #define HUF_H_298734234 | ||||
#if defined (__cplusplus) | #if defined (__cplusplus) | ||||
extern "C" { | extern "C" { | ||||
#endif | #endif | ||||
/* *** Dependencies *** */ | /* *** Dependencies *** */ | ||||
#ifdef _KERNEL | |||||
#include <sys/types.h> /* size_t */ | |||||
#else | |||||
#include <stddef.h> /* size_t */ | #include <stddef.h> /* size_t */ | ||||
#endif | |||||
/* *** simple functions *** */ | /* *** simple functions *** */ | ||||
/** | /** | ||||
HUF_compress() : | HUF_compress() : | ||||
Compress content from buffer 'src', of size 'srcSize', into buffer 'dst'. | Compress content from buffer 'src', of size 'srcSize', into buffer 'dst'. | ||||
'dst' buffer must be already allocated. | 'dst' buffer must be already allocated. | ||||
Compression runs faster if `dstCapacity` >= HUF_compressBound(srcSize). | Compression runs faster if `dstCapacity` >= HUF_compressBound(srcSize). | ||||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |