EncoderFlush

Trait EncoderFlush 

Source
pub trait EncoderFlush {
    // Required method
    fn flush(
        encoder: &mut Encoder,
        output_buf: *mut u8,
        output_len: usize,
    ) -> c_int;
}
Expand description

Flush method.

Required Methods§

Source

fn flush(encoder: &mut Encoder, output_buf: *mut u8, output_len: usize) -> c_int

Performs flush, returning result as signed integer.

§Arguments
  • output_buf - is guaranteed to never to be null;
  • output_len - is guaranteed to be capacity of memory pointed by output_buf.
§Returns

Zero or positive integer to indicate success and number of bytes written.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§