Skip to main content

Module memory

Module memory 

Source
Expand description

Generates and bridges memory copy, trap, and related VFS interactions.

Structs§

MemoryBridge
When exchanging data via Wasip1ABI, there are operations involving writing to and reading from memory. However, as these cannot be accessed during compilation, alternative functions are employed. These shall be replaced.
MemoryTrap
The final wasm, due to ABI constraints, only exposes vfs memory. Therefore, when calling the ABI from non-vfs memory, data must be copied. However, when ultimately consolidating memory into a single pool, data can be passed externally by directly passing pointers. To implement this optimization, a function is provided to determine the pointer bias before memory consolidation.
TemporaryRefugeMemory
ABI Generator: Manages memory configurations temporarily during transpilation.

Enums§

MemoryUniqueName
Encapsulates naming variants reserved for VFS memory interactions.