19 #define DLL_EXPORT __declspec(dllexport)
26 #define BLOSC_VERSION_MAJOR 1
27 #define BLOSC_VERSION_MINOR 5
28 #define BLOSC_VERSION_RELEASE 0
30 #define BLOSC_VERSION_STRING "1.5.0"
31 #define BLOSC_VERSION_REVISION "$Rev$"
32 #define BLOSC_VERSION_DATE "$Date:: 2014-11-07 #$"
34 #define BLOSCLZ_VERSION_STRING "1.0.3"
37 #define BLOSC_VERSION_FORMAT 2
40 #define BLOSC_MIN_HEADER_LENGTH 16
45 #define BLOSC_MAX_OVERHEAD BLOSC_MIN_HEADER_LENGTH
48 #define BLOSC_MAX_BUFFERSIZE (INT_MAX - BLOSC_MAX_OVERHEAD)
51 #define BLOSC_MAX_TYPESIZE 255
54 #define BLOSC_MAX_THREADS 256
57 #define BLOSC_DOSHUFFLE 0x1
58 #define BLOSC_MEMCPYED 0x2
61 #define BLOSC_BLOSCLZ 0
64 #define BLOSC_SNAPPY 3
68 #define BLOSC_BLOSCLZ_COMPNAME "blosclz"
69 #define BLOSC_LZ4_COMPNAME "lz4"
70 #define BLOSC_LZ4HC_COMPNAME "lz4hc"
71 #define BLOSC_SNAPPY_COMPNAME "snappy"
72 #define BLOSC_ZLIB_COMPNAME "zlib"
75 #define BLOSC_BLOSCLZ_LIB 0
76 #define BLOSC_LZ4_LIB 1
77 #define BLOSC_SNAPPY_LIB 2
78 #define BLOSC_ZLIB_LIB 3
81 #define BLOSC_BLOSCLZ_LIBNAME "BloscLZ"
82 #define BLOSC_LZ4_LIBNAME "LZ4"
83 #define BLOSC_SNAPPY_LIBNAME "Snappy"
84 #define BLOSC_ZLIB_LIBNAME "Zlib"
87 #define BLOSC_BLOSCLZ_FORMAT BLOSC_BLOSCLZ_LIB
88 #define BLOSC_LZ4_FORMAT BLOSC_LZ4_LIB
90 #define BLOSC_LZ4HC_FORMAT BLOSC_LZ4_LIB
91 #define BLOSC_SNAPPY_FORMAT BLOSC_SNAPPY_LIB
92 #define BLOSC_ZLIB_FORMAT BLOSC_ZLIB_LIB
97 #define BLOSC_BLOSCLZ_VERSION_FORMAT 1
98 #define BLOSC_LZ4_VERSION_FORMAT 1
99 #define BLOSC_LZ4HC_VERSION_FORMAT 1
100 #define BLOSC_SNAPPY_VERSION_FORMAT 1
101 #define BLOSC_ZLIB_VERSION_FORMAT 1
160 size_t nbytes,
const void *
src,
void *dest,
186 size_t nbytes,
const void*
src,
void* dest,
187 size_t destsize,
const char* compressor,
188 size_t blocksize,
int numinternalthreads);
227 size_t destsize,
int numinternalthreads);
334 size_t *cbytes,
size_t *blocksize);
DLL_EXPORT int blosc_set_nthreads(int nthreads)
DLL_EXPORT int blosc_compcode_to_compname(int compcode, char **compname)
DLL_EXPORT void blosc_cbuffer_sizes(const void *cbuffer, size_t *nbytes, size_t *cbytes, size_t *blocksize)
DLL_EXPORT int blosc_compress(int clevel, int doshuffle, size_t typesize, size_t nbytes, const void *src, void *dest, size_t destsize)
DLL_EXPORT void blosc_init(void)
DLL_EXPORT void blosc_cbuffer_metainfo(const void *cbuffer, size_t *typesize, int *flags)
DLL_EXPORT int blosc_compname_to_compcode(const char *compname)
DLL_EXPORT void blosc_cbuffer_versions(const void *cbuffer, int *version, int *versionlz)
DLL_EXPORT int blosc_getitem(const void *src, int start, int nitems, void *dest)
DLL_EXPORT void blosc_destroy(void)
DLL_EXPORT int blosc_decompress(const void *src, void *dest, size_t destsize)
DLL_EXPORT int blosc_decompress_ctx(const void *src, void *dest, size_t destsize, int numinternalthreads)
DLL_EXPORT char * blosc_list_compressors(void)
DLL_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)
DLL_EXPORT char * blosc_cbuffer_complib(const void *cbuffer)
GT_API const UT_StringHolder version
DLL_EXPORT void blosc_set_blocksize(size_t blocksize)
DLL_EXPORT int blosc_get_complib_info(char *compname, char **complib, char **version)
DLL_EXPORT int blosc_free_resources(void)
DLL_EXPORT int blosc_set_compressor(const char *compname)