pub fn write_memory(data: &[u8]) -> u64
Writes bytes into wasm linear memory and returns a packed pointer/length pair.