Skip to main content

buffer_from_vec

Function buffer_from_vec 

Source
pub fn buffer_from_vec(v: Vec<u8>) -> FolditPluginBuffer
Expand description

Hand a Vec<u8> to the host. Ownership transfers; the host returns it through free_buffer, which reconstructs the Vec from the recorded capacity.