Struct libsecp256k1::util::Decoder
source · pub struct Decoder<'a>(/* private fields */);
Implementations§
source§impl<'a> Decoder<'a>
impl<'a> Decoder<'a>
pub fn new(arr: &'a [u8]) -> Decoder<'a>
pub fn remaining_len(&self) -> usize
pub fn read(&mut self) -> Result<u8, Error>
pub fn peek(&self, forward: usize) -> Result<u8, Error>
pub fn peek_slice(&self, len: usize) -> Result<&[u8], Error>
pub fn skip(&mut self, len: usize) -> Result<(), Error>
pub fn read_constructed_sequence(&mut self) -> Result<(), Error>
pub fn read_len(&mut self) -> Result<usize, Error>
pub fn read_integer(&mut self) -> Result<Scalar, Error>
pub fn read_seq_len_lax(&mut self) -> Result<usize, Error>
pub fn read_len_lax(&mut self) -> Result<usize, Error>
pub fn read_integer_lax(&mut self) -> Result<Scalar, Error>
Auto Trait Implementations§
impl<'a> Freeze for Decoder<'a>
impl<'a> RefUnwindSafe for Decoder<'a>
impl<'a> Send for Decoder<'a>
impl<'a> Sync for Decoder<'a>
impl<'a> Unpin for Decoder<'a>
impl<'a> UnwindSafe for Decoder<'a>
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