mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-17 08:51:34 +00:00
Make memory allocators pluggable
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import "std:memory/arena";
|
||||
|
||||
// note that this doesn't test a real set implementation yet, see std/assembly/set.ts
|
||||
|
||||
var set = changetype<Set<i32>>(allocate_memory(sizeof<usize>() + 2 * sizeof<i32>()));
|
||||
|
Reference in New Issue
Block a user