Skip to main content

Module decoding

Module decoding 

Source
Expand description

Structures and utilities used for decoding zstd formatted data

Modules§

errors
Errors that might occur while decoding zstd formatted data

Structs§

DecoderWorkspace
A decoder whose internal tables and history storage are allocated up front.
Dictionary
Zstandard includes support for “raw content” dictionaries, that store bytes optionally used during sequence execution.
FrameDecoder
Low level Zstandard decoder that can be used to decompress frames with fine control over when and how many bytes are decoded.
MultiFrameDecoderstd
A Read decoder for concatenated data and skippable Zstandard frames.
MultiFrameDecoderOptionsstd
Resource and format policy for MultiFrameDecoder.
StaticDecoderWorkspace
A decoder whose complete scratch state is placed in caller-provided bytes.
StreamingDecoder
High level Zstandard frame decoder that can be used to decompress a given Zstandard frame.

Enums§

BlockDecodingStrategy
DecoderWorkspaceError
Errors produced by a prepared decoder workspace.
MultiFrameDecoderErrorstd
A typed failure retained inside the io::Error returned by Read.
SkippableFramePolicystd
Policy for RFC 8878 skippable frames encountered between data frames.

Constants§

DEFAULT_MAX_WINDOW_SIZE
While the maximum window size allowed by the spec is significantly larger, our implementation limits it to 100mb to protect against malformed frames. Default maximum frame window accepted by the high-level decoders (100 MiB).