[][src]Trait ptero::decoder::Decoder

pub trait Decoder<D> where
    D: Context
{ pub fn partial_decode(&self, context: &D) -> Result<Vec<Bit>, ContextError>; pub fn decode(
        &self,
        context: &mut D,
        progress_channel: Option<&Sender<ProgressStatus>>
    ) -> Result<Vec<u8>, Box<dyn Error>> { ... } }

Base trait for all data decoders. The generic type should contain data need by the decoder implementation.

Required methods

pub fn partial_decode(&self, context: &D) -> Result<Vec<Bit>, ContextError>[src]

Decodes bits from the cover text. The access to the cover text is bound by the Context.

Arguments

  • context - context of the steganography method, can contain various needed info like pivot etc.

Returns

It returns Result, either decoded data as as vector of Bits or error.

Loading content...

Provided methods

pub fn decode(
    &self,
    context: &mut D,
    progress_channel: Option<&Sender<ProgressStatus>>
) -> Result<Vec<u8>, Box<dyn Error>>
[src]

Loading content...

Implementors

impl Decoder<PivotByRawLineContext> for ELUVMethod[src]

impl Decoder<PivotByRawLineContext> for ExtendedLineMethod[src]

impl Decoder<PivotByRawLineContext> for LineExtendMethod[src]

impl<D> Decoder<D> for RandomWhitespaceMethod where
    D: Context
[src]

impl<D> Decoder<D> for TrailingUnicodeMethod where
    D: Context
[src]

impl<D> Decoder<D> for TrailingWhitespaceMethod where
    D: Context
[src]

Loading content...