26 #ifndef vtkZLibDataCompressor_h
27 #define vtkZLibDataCompressor_h
29 #include "vtkIOCoreModule.h"
51 vtkSetClampMacro(CompressionLevel,
int, 0, 9);
52 vtkGetMacro(CompressionLevel,
int);
63 size_t uncompressedSize,
64 unsigned char* compressedData,
65 size_t compressionSpace);
68 size_t compressedSize,
69 unsigned char* uncompressedData,
70 size_t uncompressedSize);
Abstract interface for data compression classes.
a simple class to control print indentation
Data compression using zlib.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
size_t UncompressBuffer(unsigned char const *compressedData, size_t compressedSize, unsigned char *uncompressedData, size_t uncompressedSize)
size_t CompressBuffer(unsigned char const *uncompressedData, size_t uncompressedSize, unsigned char *compressedData, size_t compressionSpace)
static vtkZLibDataCompressor * New()
size_t GetMaximumCompressionSpace(size_t size)
Get the maximum space that may be needed to store data of the given uncompressed size after compressi...