In the best documentation I have found for for witx (wasmtime/crates/wiggle/tests/structs.witx), I see that there are @witx const_pointer
at places.
I have tried creating a
(typename $array_string (array string))
(typename $foo
(field $bar $array_string))
But it failed. However, when replacing (array string)
with (array (@witx const_pointer string))
it now builds (though I haven't checked yet whether it does what I want).
Is ghere doc somewhere on what @witx const_pointer does and when it must be used?
Hmm forgot to mention how it failed: it failed with GuestType is not implemented for GuestPtr<[GuestPtr<str>]>
Last updated: Nov 22 2024 at 16:03 UTC