mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-17 17:01:37 +00:00
Make memory allocators pluggable
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import "std:memory/arena";
|
||||
|
||||
var arr = changetype<i32[]>(allocate_memory(sizeof<usize>() + 2 * sizeof<i32>()));
|
||||
|
||||
assert(arr.length == 0);
|
||||
|
Reference in New Issue
Block a user