20 #define BLOSC_VERSION_MAJOR 1
21 #define BLOSC_VERSION_MINOR 20
22 #define BLOSC_VERSION_RELEASE 1
24 #define BLOSC_VERSION_STRING "1.20.1"
25 #define BLOSC_VERSION_REVISION "$Rev$"
26 #define BLOSC_VERSION_DATE "$Date:: 2020-09-08 #$"
28 #define BLOSCLZ_VERSION_STRING "2.3.0"
31 #define BLOSC_VERSION_FORMAT 2
34 #define BLOSC_MIN_HEADER_LENGTH 16
39 #define BLOSC_MAX_OVERHEAD BLOSC_MIN_HEADER_LENGTH
42 #define BLOSC_MAX_BUFFERSIZE (INT_MAX - BLOSC_MAX_OVERHEAD)
45 #define BLOSC_MAX_TYPESIZE 255
49 #define BLOSC_MAX_BLOCKSIZE \
50 ((INT_MAX - BLOSC_MAX_TYPESIZE * sizeof(int32_t)) / 3)
53 #define BLOSC_MAX_THREADS 256
56 #define BLOSC_NOSHUFFLE 0
57 #define BLOSC_SHUFFLE 1
58 #define BLOSC_BITSHUFFLE 2
61 #define BLOSC_DOSHUFFLE 0x1
62 #define BLOSC_MEMCPYED 0x2
63 #define BLOSC_DOBITSHUFFLE 0x4
66 #define BLOSC_BLOSCLZ 0
69 #define BLOSC_SNAPPY 3
74 #define BLOSC_BLOSCLZ_COMPNAME "blosclz"
75 #define BLOSC_LZ4_COMPNAME "lz4"
76 #define BLOSC_LZ4HC_COMPNAME "lz4hc"
77 #define BLOSC_SNAPPY_COMPNAME "snappy"
78 #define BLOSC_ZLIB_COMPNAME "zlib"
79 #define BLOSC_ZSTD_COMPNAME "zstd"
82 #define BLOSC_BLOSCLZ_LIB 0
83 #define BLOSC_LZ4_LIB 1
84 #define BLOSC_SNAPPY_LIB 2
85 #define BLOSC_ZLIB_LIB 3
86 #define BLOSC_ZSTD_LIB 4
89 #define BLOSC_BLOSCLZ_LIBNAME "BloscLZ"
90 #define BLOSC_LZ4_LIBNAME "LZ4"
91 #define BLOSC_SNAPPY_LIBNAME "Snappy"
92 #define BLOSC_ZLIB_LIBNAME "Zlib"
93 #define BLOSC_ZSTD_LIBNAME "Zstd"
96 #define BLOSC_BLOSCLZ_FORMAT BLOSC_BLOSCLZ_LIB
97 #define BLOSC_LZ4_FORMAT BLOSC_LZ4_LIB
98 #define BLOSC_LZ4HC_FORMAT BLOSC_LZ4_LIB
99 #define BLOSC_SNAPPY_FORMAT BLOSC_SNAPPY_LIB
100 #define BLOSC_ZLIB_FORMAT BLOSC_ZLIB_LIB
101 #define BLOSC_ZSTD_FORMAT BLOSC_ZSTD_LIB
106 #define BLOSC_BLOSCLZ_VERSION_FORMAT 1
107 #define BLOSC_LZ4_VERSION_FORMAT 1
108 #define BLOSC_LZ4HC_VERSION_FORMAT 1
109 #define BLOSC_SNAPPY_VERSION_FORMAT 1
110 #define BLOSC_ZLIB_VERSION_FORMAT 1
111 #define BLOSC_ZSTD_VERSION_FORMAT 1
116 #define BLOSC_ALWAYS_SPLIT 1
117 #define BLOSC_NEVER_SPLIT 2
118 #define BLOSC_AUTO_SPLIT 3
119 #define BLOSC_FORWARD_COMPAT_SPLIT 4
224 size_t nbytes,
const void *
src,
void *dest,
248 size_t nbytes,
const void*
src,
void* dest,
249 size_t destsize,
const char* compressor,
250 size_t blocksize,
int numinternalthreads);
304 size_t destsize,
int numinternalthreads);
430 size_t *cbytes,
size_t *blocksize);
BLOSC_EXPORT int blosc_get_nthreads(void)
BLOSC_EXPORT void blosc_set_blocksize(size_t blocksize)
BLOSC_EXPORT const char * blosc_cbuffer_complib(const void *cbuffer)
BLOSC_EXPORT int blosc_compress_ctx(int clevel, int doshuffle, size_t typesize, size_t nbytes, const void *src, void *dest, size_t destsize, const char *compressor, size_t blocksize, int numinternalthreads)
BLOSC_EXPORT void blosc_cbuffer_sizes(const void *cbuffer, size_t *nbytes, size_t *cbytes, size_t *blocksize)
BLOSC_EXPORT void blosc_set_splitmode(int splitmode)
BLOSC_EXPORT int blosc_decompress_ctx(const void *src, void *dest, size_t destsize, int numinternalthreads)
BLOSC_EXPORT int blosc_get_blocksize(void)
BLOSC_EXPORT const char * blosc_get_compressor(void)
BLOSC_EXPORT int blosc_set_compressor(const char *compname)
BLOSC_EXPORT int blosc_getitem(const void *src, int start, int nitems, void *dest)
GT_API const UT_StringHolder version
BLOSC_EXPORT int blosc_decompress(const void *src, void *dest, size_t destsize)
BLOSC_EXPORT int blosc_free_resources(void)
BLOSC_EXPORT void blosc_cbuffer_versions(const void *cbuffer, int *version, int *compversion)
BLOSC_EXPORT int blosc_compcode_to_compname(int compcode, const char **compname)
BLOSC_EXPORT int blosc_compress(int clevel, int doshuffle, size_t typesize, size_t nbytes, const void *src, void *dest, size_t destsize)
BLOSC_EXPORT int blosc_compname_to_compcode(const char *compname)
BLOSC_EXPORT const char * blosc_get_version_string(void)
BLOSC_EXPORT void blosc_destroy(void)
BLOSC_EXPORT int blosc_set_nthreads(int nthreads)
BLOSC_EXPORT int blosc_cbuffer_validate(const void *cbuffer, size_t cbytes, size_t *nbytes)
BLOSC_EXPORT const char * blosc_list_compressors(void)
BLOSC_EXPORT void blosc_cbuffer_metainfo(const void *cbuffer, size_t *typesize, int *flags)
BLOSC_EXPORT void blosc_init(void)
BLOSC_EXPORT int blosc_get_complib_info(const char *compname, char **complib, char **version)