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.