2024-03-30 21:57:38 +01:00
|
|
|
module alloc;
|
|
|
|
|
|
|
|
u64 alloc(u64 size) {
|
|
|
|
return 0u64;
|
|
|
|
}
|
|
|
|
|
|
|
|
void free(u64 address) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
u64 growMemory(u64 numPages) {
|
2024-10-27 00:07:14 +02:00
|
|
|
i64 value = __builtin_memory_grow(numPages);
|
|
|
|
if(value == -1) {
|
|
|
|
return 0u64;
|
|
|
|
}
|
|
|
|
|
|
|
|
return __builtin_memory_size();
|
|
|
|
}
|
|
|
|
|
|
|
|
u64 memorySize() {
|
|
|
|
return __builtin_memory_size();
|
2024-03-30 21:57:38 +01:00
|
|
|
}
|