Decoder

Trait Decoder 

Source
pub trait Decoder {
    // Required methods
    fn name(&self) -> &'static str;
    fn decode(
        &mut self,
        src: &[u8],
        dst: &mut String,
        finish: bool,
    ) -> Result<(usize, usize), DecodeError>;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn decode( &mut self, src: &[u8], dst: &mut String, finish: bool, ) -> Result<(usize, usize), DecodeError>

If no error occurs, return Ok((read_bytes, write_bytes)).

Implementors§