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