Skip to main content

give_output

Function give_output 

Source
pub fn give_output(bytes: Vec<u8>) -> Val
Expand description

give a buffer to javascript without a copy: its whole capacity becomes the ArrayBuffer, the content is a view of its length (like the output buffer of the typescript writer)