[][src]Trait ct_codecs::Decoder

pub trait Decoder {
    fn decode<'t, IN: AsRef<[u8]>>(
        bin: &'t mut [u8],
        encoded: IN,
        ignore: Option<&[u8]>
    ) -> Result<&'t [u8], Error>; fn decode_to_vec<IN: AsRef<[u8]>>(
        encoded: IN,
        ignore: Option<&[u8]>
    ) -> Result<Vec<u8>, Error> { ... } }

Required methods

fn decode<'t, IN: AsRef<[u8]>>(
    bin: &'t mut [u8],
    encoded: IN,
    ignore: Option<&[u8]>
) -> Result<&'t [u8], Error>

Decode encoded into bin. The output buffer can be larger than required; the returned slice is a view of the buffer with the correct length. ignore is an optional set of characters to ignore.

Loading content...

Provided methods

fn decode_to_vec<IN: AsRef<[u8]>>(
    encoded: IN,
    ignore: Option<&[u8]>
) -> Result<Vec<u8>, Error>

Decode encoded into a Vec<u8>. ignore is an optional set of characters to ignore.

Loading content...

Implementors

impl Decoder for Base64[src]

impl Decoder for Base64NoPadding[src]

impl Decoder for Base64UrlSafe[src]

impl Decoder for Base64UrlSafeNoPadding[src]

impl Decoder for Hex[src]

Loading content...