pub fn alloc_string_ref<T>(
caller: &mut Caller<'_, T>,
bytes: &[u8],
) -> Result<Rooted<ArrayRef>>Expand description
Allocates a $i8_array wasm array holding bytes and returns a rooted
reference. Single allocation; callers can format UUID/name payloads into
a reused Vec<u8> and ship the bytes without an intermediate String.
Engine canonicalizes the i8 array type so the host-side allocation
matches the guest’s (array i8) declaration in
CompileContext::new_skeleton.