Stream: general

Topic: Witx const_pointer


view this post on Zulip Léo Gaspard (Jan 06 2021 at 23:02):

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?

view this post on Zulip Léo Gaspard (Jan 06 2021 at 23:11):

Hmm forgot to mention how it failed: it failed with GuestType is not implemented for GuestPtr<[GuestPtr<str>]>


Last updated: Dec 23 2024 at 13:07 UTC