elliottt opened issue #9319:
Feature
The
GuestMemory::as_slicemethod should allow slices of types other thanu8to be constructed. It's currently possible to work around this by using theGuestMemory::to_vecmethod, which is appropriately parameterized, but it would be nice to read slices of types likeu32without having to copy all the values back into the host.Benefit
This change woudl result in a slight memory savings for cases where you don't need the entire vector to be present in host memory.
Alternatives
We can certainly leave things as they are, as it's always possible to fall back on
GuestMemory::to_vec.
elliottt added the wiggle label to Issue #9319.
Last updated: Dec 13 2025 at 19:03 UTC