Wasm3::Memory
A bounds-checked view over a runtime's linear memory.
The view asks Wasm3 for the memory pointer on each operation, so it remains valid when the guest grows memory. Keep a Memory object only while its Runtime is alive.
Instance methods
bytes
Returns a zero-copy slice. The slice must not be retained across guest memory growth; use read_bytes for an owned copy.
empty?
Sourceindex
SourceReturns an IO over [offset, offset + length). The IO is fixed-size: a write past its end raises IO::Error instead of growing guest memory.
Copies memory into +destination+. This is public so callers can avoid an intermediate allocation when decoding a guest buffer.
runtime
Sourcesize
Source