Struct polkavm_common::writer::Writer
source · pub struct Writer<'a> { /* private fields */ }
Implementations§
source§impl<'a> Writer<'a>
impl<'a> Writer<'a>
pub fn new(buffer: &'a mut Vec<u8>) -> Self
pub fn push_raw_bytes(&mut self, slice: &[u8])
pub fn push_byte(&mut self, byte: u8)
pub fn push_u32(&mut self, value: u32)
pub fn push_varint(&mut self, value: u32)
pub fn push_bytes_with_length(&mut self, slice: &[u8])
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<'a> Freeze for Writer<'a>
impl<'a> RefUnwindSafe for Writer<'a>
impl<'a> Send for Writer<'a>
impl<'a> Sync for Writer<'a>
impl<'a> Unpin for Writer<'a>
impl<'a> !UnwindSafe for Writer<'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