pub(super) struct BufReader<'i> {
decoder: Decoder<'i>,
remaining: usize,
buf: [u8; 256],
pos: usize,
cap: usize,
}Fields§
§decoder: Decoder<'i>Inner PEM decoder.
remaining: usizeRemaining after base64 decoding
buf: [u8; 256]Read buffer
pos: usizePosition of the head in the buffer,
cap: usizePosition of the tail in the buffer,
Implementations§
Source§impl<'i> BufReader<'i>
impl<'i> BufReader<'i>
const CAPACITY: usize = 256usize
pub fn new(pem: &'i [u8]) -> Result<Self>
pub fn remaining_len(&self) -> usize
fn fill_buffer(&mut self) -> Result<()>
Sourcepub fn type_label(&self) -> &'i str
pub fn type_label(&self) -> &'i str
Get the PEM label which will be used in the encapsulation boundaries for this document.
fn is_empty(&self) -> bool
fn as_slice(&self) -> &[u8] ⓘ
Trait Implementations§
Auto Trait Implementations§
impl<'i> Freeze for BufReader<'i>
impl<'i> RefUnwindSafe for BufReader<'i>
impl<'i> Send for BufReader<'i>
impl<'i> Sync for BufReader<'i>
impl<'i> Unpin for BufReader<'i>
impl<'i> UnwindSafe for BufReader<'i>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more