Struct zstd_seekable::SeekableCStream[][src]

pub struct SeekableCStream { /* fields omitted */ }
Expand description

The type of seekable compressors.

Implementations

Create a compressor with the given level and frame size. When seeking in the file, frames are decompressed one by one, so this should be chosen of a size similar to the chunks that will be decompressed.

Compress one chunk of input, and write it into the output. The output array must be large enough to hold the result. If successful, this function returns two integers (out_pos, in_pos), where out_pos is the number of bytes written in output, and in_pos is the number of input bytes consumed.

Finish writing the message, i.e. write the remaining pending block.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.