spacemeshos / svm

SVM - Spacemesh Virtual Machine
https://spacemesh.io
MIT License
85 stars 14 forks source link

Refactor WASM memory reading / writing using `WasmPtr` and `Cell` utilities #425

Closed neysofu closed 2 years ago

neysofu commented 2 years ago

At the moment, we iterate over u8 Cell's to write and read values from running WASM. In the future, we might want to replace that logic with Cell methods that allow to read and write values with simpler code. It also has the added benefit of computing and checking memory alignment if necessary.