pub struct AbiWriter { /* private fields */ }
Expand description
Writer for RLP encoded data
Implementations§
source§impl AbiWriter
impl AbiWriter
sourcepub fn new_dynamic(is_dynamic: bool) -> Self
pub fn new_dynamic(is_dynamic: bool) -> Self
Initialize internal buffers with data size
sourcepub fn new_call(method_id: u32) -> Self
pub fn new_call(method_id: u32) -> Self
Initialize internal buffers, inserting method selector at beginning
sourcepub fn write_usize(&mut self, value: &usize)
👎Deprecated: dangerous, as usize may have different width in wasm and native execution
pub fn write_usize(&mut self, value: &usize)
Write usize
to end of buffer
sourcepub fn write_subresult(&mut self, result: Self)
pub fn write_subresult(&mut self, result: Self)
Append recursive data, writing pending offset at end of buffer
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for AbiWriter
impl Send for AbiWriter
impl Sync for AbiWriter
impl Unpin for AbiWriter
impl UnwindSafe for AbiWriter
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