Crate preflate_rs

Source

Structs§

PreflateConfig
Configuration for the deflate process
PreflateContainerProcessor
Takes a sequence of bytes that may contain deflate streams, find the streams, and emits a new stream that containus the decompressed streams along with the corrections needed to recreate the original.
PreflateError
Standard error returned by Preflate library
PreflateStats
Statistics about the preflate process
PreflateStreamChunkResult
Result of a call to PreflateStreamProcessor::decompress
PreflateStreamProcessor
Takes a stream of deflate compressed data removes the deflate compression, recording the data that can be used to reconstruct it along with the plain-text.
RecreateContainerProcessor
recreates the orignal content from the chunked data
RecreateStreamProcessor
recreates the original deflate stream, piece-by-piece
ZstdCompressContext
processor that compresses the input using Zstandard
ZstdDecompressContext
Processor that decompresses the input using Zstandard

Enums§

ExitCode

Traits§

ProcessBuffer
Processes an input buffer and writes the output to a writer

Functions§

preflate_whole_deflate_stream
Decompresses a deflate stream and returns the plaintext and diff data that can be used to reconstruct it via recreate_whole_deflate_stream
preflate_whole_into_container
Scans for multiple deflate streams in an arbitrary binary file, decompresses the streams and returns an uncompressed file that can then be recompressed using a better algorithm. This can then be passed back into recreate_whole_from_container to recreate the exact original file.
recreate_whole_deflate_stream
recompresses a deflate stream using the cabac_encoded data that was returned from decompress_deflate_stream
recreate_whole_from_container
Takes the binary output of preflate_whole_into_container and recreates the original file.
zstd_preflate_whole_deflate_stream
Expands the Zlib compressed streams in the data and then recompresses the result with Zstd with the given level.
zstd_recreate_whole_deflate_stream
Decompresses the Zstd compressed data and then recompresses the result back to the original Zlib compressed streams.

Type Aliases§

Result