Trait ct_codecs::Decoder [−][src]
Required methods
fn decode<'t, IN: AsRef<[u8]>>(
bin: &'t mut [u8],
encoded: IN,
ignore: Option<&[u8]>
) -> Result<&'t [u8], Error>[src]
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.
Provided methods
fn decode_to_vec<IN: AsRef<[u8]>>(
encoded: IN,
ignore: Option<&[u8]>
) -> Result<Vec<u8>, Error>[src]
encoded: IN,
ignore: Option<&[u8]>
) -> Result<Vec<u8>, Error>
Decode encoded into a Vec<u8>.
ignore is an optional set of characters to ignore.
Implementors
impl Decoder for Base64[src]
fn decode<'t, IN: AsRef<[u8]>>(
bin: &'t mut [u8],
b64: IN,
ignore: Option<&[u8]>
) -> Result<&'t [u8], Error>[src]
bin: &'t mut [u8],
b64: IN,
ignore: Option<&[u8]>
) -> Result<&'t [u8], Error>
impl Decoder for Base64NoPadding[src]
fn decode<'t, IN: AsRef<[u8]>>(
bin: &'t mut [u8],
b64: IN,
ignore: Option<&[u8]>
) -> Result<&'t [u8], Error>[src]
bin: &'t mut [u8],
b64: IN,
ignore: Option<&[u8]>
) -> Result<&'t [u8], Error>
impl Decoder for Base64UrlSafe[src]
fn decode<'t, IN: AsRef<[u8]>>(
bin: &'t mut [u8],
b64: IN,
ignore: Option<&[u8]>
) -> Result<&'t [u8], Error>[src]
bin: &'t mut [u8],
b64: IN,
ignore: Option<&[u8]>
) -> Result<&'t [u8], Error>
impl Decoder for Base64UrlSafeNoPadding[src]
fn decode<'t, IN: AsRef<[u8]>>(
bin: &'t mut [u8],
b64: IN,
ignore: Option<&[u8]>
) -> Result<&'t [u8], Error>[src]
bin: &'t mut [u8],
b64: IN,
ignore: Option<&[u8]>
) -> Result<&'t [u8], Error>