git ssb

0+

wanderer🌟 / js-primea-wasm-container



Tree: 885e05bd77e55f9846f83ccd30e285c5566e6f38

Files: 885e05bd77e55f9846f83ccd30e285c5566e6f38 / tests / wast / memory.wast

599 bytesRaw
1(module
2 (import "memory" "externalize" (func $externalize (param i32 i32) (result i32)))
3 (import "memory" "internalize" (func $internalize (param i32 i32 i32 i32)))
4 (import "memory" "length" (func $length (param i32) (result i32)))
5 (memory (export "memory") 1)
6 (data (i32.const 0) "test")
7 (func $test
8 (local $dataRef i32)
9 (call $internalize
10 (i32.const 5)
11 (call $length
12 (tee_local $dataRef
13 (call $externalize
14 (i32.const 0)
15 (i32.const 4))))
16 (get_local $dataRef)
17 (i32.const 0))
18 )
19 (export "test" (func $test)))
20

Built with git-ssb-web