pchickey commented on issue #6884:
The witx offsets are supposed to align with
repr(C)
for the wasm32 ABI defined by clang, but that wont be the same as therepr(C)
on the host.
pchickey edited a comment on issue #6884:
The witx offsets are
repr(C)
for the wasm32 ABI defined by clang, but that wont be the same as therepr(C)
on the host.
acfoltzer commented on issue #6884:
Ahh, of course! Glad I didn't pursue that, then. This seems to be good enough for anyone who really needs this to do what they want with GuestPtr, even if it's not super convenient. Convenience is for wit-bindgen at this point
pchickey commented on issue #6884:
Yep this is a perfectly fine way to get the right inputs for your GuestPtr operations. The wiggle generator has all that information, so there's no reason not to expose it to the user if they want it.
Last updated: Nov 22 2024 at 17:03 UTC