Skip to main content

read_args

Function read_args 

Source
pub fn read_args<const CAP: usize>(len: usize) -> ([u8; CAP], usize)
Expand description

Read arguments from the Stylus VM (calldata), using unsafe MaybeUninit code if we’re on the wasm host. If we’re on a non wasm host, zero it out then return it. We also return the length.