pub type Base64Reader<'i> = Decoder<'i, Base64>;
Available on crate feature
base64
only.Expand description
Constant-time Base64 reader implementation.
Aliased Type§
pub struct Base64Reader<'i> { /* private fields */ }
Trait Implementations§
Source§impl Reader for Base64Reader<'_>
impl Reader for Base64Reader<'_>
Source§fn read<'o>(&mut self, out: &'o mut [u8]) -> Result<&'o [u8]>
fn read<'o>(&mut self, out: &'o mut [u8]) -> Result<&'o [u8]>
Read as much data as is needed to exactly fill
out
. Read moreSource§fn remaining_len(&self) -> usize
fn remaining_len(&self) -> usize
Get the length of the remaining data after Base64 decoding.
Source§fn is_finished(&self) -> bool
fn is_finished(&self) -> bool
Is decoding finished?
Source§fn read_prefixed<'r, T, E, F>(&'r mut self, f: F) -> Result<T, E>
fn read_prefixed<'r, T, E, F>(&'r mut self, f: F) -> Result<T, E>
Decode length-prefixed data. Read more
Source§fn drain(&mut self, n_bytes: usize) -> Result<()>
fn drain(&mut self, n_bytes: usize) -> Result<()>
Drain the given number of bytes from the reader, discarding them.
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes