elliottt opened issue #9319:
Feature
The
GuestMemory::as_slice
method should allow slices of types other thanu8
to be constructed. It's currently possible to work around this by using theGuestMemory::to_vec
method, which is appropriately parameterized, but it would be nice to read slices of types likeu32
without 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 23 2024 at 12:05 UTC