11 #ifndef UT_COMPRESSION_H_
12 #define UT_COMPRESSION_H_
23 #define UT_GZIP_HEADER_MAGIC "\x1f\x8b\x08"
25 #define UT_BLOSC_BLOCKSIZE (1048576)
26 #define UT_BLOSC_TYPESIZE (sizeof(float))
27 #define UT_BLOSC_COMPRESSION_LEVEL (9)
49 if (
string ==
"blosc")
53 else if (
string ==
"off" ||
string ==
"none")
57 else if (
string ==
"on" ||
string ==
"gzip")
63 UT_ASSERT(
false &&
"Compression type not known. "
64 "You probably added the type to OBJ_Shared.C and not here.");
GT_API const UT_StringHolder filename
bool matchFileExtension(const char *match_extension) const
UT_CompressionType UTcompressionTypeFromString(const UT_String &string)
UT_CompressionType UTcompressionTypeFromFilename(const UT_String &filename)