Skip to main content

Module raw

Module raw 

Source
Expand description

Raw in-memory stream compression/decompression.

This module defines a Decoder and an Encoder to decode/encode streams of data using buffers.

They are mostly thin wrappers around zstd_safe::{DCtx, CCtx}.

Structsยง

Decoder
An in-memory decoder for streams of data.
Encoder
An in-memory encoder for streams of data.
InBuffer
Wrapper around an input buffer.
NoOp
Dummy operation that just copies its input to the output.
OutBuffer
Wrapper around an output buffer.
Status
Describes the result of an operation.

Enumsยง

CParameter
A compression parameter.
DParameter
A decompression parameter.
MaybeOwnedCCtx ๐Ÿ”’
MaybeOwnedDCtx ๐Ÿ”’

Traitsยง

Operation
Represents an abstract compression/decompression operation.
WriteBuf
Describe a bytes container, like Vec<u8>.

Functionsยง

create_dctx ๐Ÿ”’