[][src]Function holochain_wasmer_host::import::__import_bytes

pub fn __import_bytes(
    ctx: &mut Ctx,
    host_allocation_ptr: RemotePtr,
    guest_bytes_ptr: RemotePtr
)

import bytes from the host allocation pointer to the guest bytes pointer

  • the host allocation pointer must point to the allocation for the bytes to copy
  • the guest bytes pointer must point to preallocated space with the correct length