Skip to main content

load

Function load 

pub fn load(bytes: &[u8]) -> Result<WasmPainter, Refusal>
Expand description

Load the painter module bytes: validated, refused if it imports anything, started under the call budget, and asked for its parameters.

ยงErrors

The module is not a painter set this host runs (Refusal).