Public Types | |
| enum | FlushType { FT_NO_FLUSH = 0 , FT_PARTIAL_FLUSH , FT_SYNC_FLUSH , FT_FULL_FLUSH , FT_FINISH , FT_BLOCK , FT_TREES } |
| using | Header = AZ::u32 |
| Typedef for the byte zstd header. | |
Public Member Functions | |
| ZStd (IAllocator *workMemAllocator=0) | |
| void | StartCompressor (unsigned int compressionLevel=1) |
| bool | IsCompressorStarted () const |
| void | StopCompressor () |
| void | ResetCompressor () |
| void | StartDecompressor () |
| bool | IsDecompressorStarted () const |
| void | StopDecompressor () |
| void | ResetDecompressor (Header *header=nullptr) |
| If you will use seek/sync points we require that you pass the header since the reset will reset all states and you can't really continue (unless from the start). | |
| unsigned int | GetMinCompressedBufferSize (unsigned int sourceDataSize) |
| unsigned int | Compress (const void *data, unsigned int &dataSize, void *compressedData, unsigned int compressedDataSize, FlushType flushType=FT_NO_FLUSH) |
| unsigned int | Decompress (const void *compressedData, unsigned int compressedDataSize, void *outputData, unsigned int outputDataSize, size_t *sizeOfNextBlock) |