#include <fastCompression.h>
Definition at line 21 of file fastCompression.h.
| static TF_API size_t TfFastCompression::CompressToBuffer |
( |
char const * |
input, |
|
|
char * |
compressed, |
|
|
size_t |
inputSize |
|
) |
| |
|
static |
Compress inputSize bytes in input and store the result in compressed. The compressed buffer must point to at least GetCompressedBufferSize(uncompressedSize) bytes. Return the number of bytes written to the compressed buffer. Issue a runtime error and return ~0 in case of an error.
| static TF_API size_t TfFastCompression::DecompressFromBuffer |
( |
char const * |
compressed, |
|
|
char * |
output, |
|
|
size_t |
compressedSize, |
|
|
size_t |
maxOutputSize |
|
) |
| |
|
static |
Decompress compressedSize bytes in compressed and store the result in output. No more than maxOutputSize bytes will be written to output.
| static TF_API size_t TfFastCompression::GetCompressedBufferSize |
( |
size_t |
inputSize | ) |
|
|
static |
Return the largest possible compressed size for the given inputSize in the worst case (input is not compressible). This is larger than inputSize. If inputSize is larger than GetMaxInputSize(), return 0.
| static TF_API size_t TfFastCompression::GetMaxInputSize |
( |
| ) |
|
|
static |
Return the largest input buffer size that can be compressed with these functions. Guaranteed to be at least 200 GB.
The documentation for this class was generated from the following file: