[][src]Struct zstd_seekable::CStream

pub struct CStream { /* fields omitted */ }

The type of compressors.

Implementations

impl CStream[src]

pub fn new(level: usize) -> Result<Self, Error>[src]

pub fn in_size() -> usize[src]

pub fn out_size() -> usize[src]

pub fn compress(
    &mut self,
    output: &mut [u8],
    input: &[u8]
) -> Result<(usize, usize, usize), Error>
[src]

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 three integers (out_pos, in_pos, next_read_size), where out_pos is the number of bytes written in output, in_pos is the number of input bytes consumed, and next_read_size is a hint for the next read size.

pub fn compress2(
    &mut self,
    output: &mut [u8],
    input: &[u8],
    op: EndDirective
) -> Result<(usize, usize, usize), Error>
[src]

pub fn flush(&mut self, output: &mut [u8]) -> Result<(usize, usize), Error>[src]

pub fn end(&mut self, output: &mut [u8]) -> Result<usize, Error>[src]

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

Trait Implementations

impl Drop for CStream[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.