Function hdk::prelude::allocation::consume_bytes
source · pub fn consume_bytes(guest_ptr: usize, len: usize) -> Vec<u8> ⓘ
Expand description
Attempt to consume bytes from a known guest_ptr
and len
.
Consume in this context means take ownership of previously forgotten data.
This needs to work for bytes written into the guest from the host and for bytes written with
the write_bytes
function within the guest.