is there anywhere in the spec that guarantees that resources defined on the host have rep: u32
(either implicitly or explicitly)?
the canonical abi declares here that the resource.new
and resource.rep
intrinsics work only on locally-defined (which i take to mean defined on the guest) resources.
Resources don't have a defined host representation per se, but resource handles are lowered to u32s for core modules.
If you can give more context for your question there might be a more useful answer.
Last updated: Dec 23 2024 at 13:07 UTC