mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-28 08:22:15 +00:00
11 lines
222 B
TypeScript
11 lines
222 B
TypeScript
|
import "../../../compiler/runtime/asrt";
|
||
|
|
||
|
export namespace memory {
|
||
|
export function allocate(size: usize): usize {
|
||
|
return __mm_allocate(size);
|
||
|
}
|
||
|
export function free(ptr: usize): void {
|
||
|
__mm_free(ptr);
|
||
|
}
|
||
|
}
|