2024-07-18 19:10:27 +00:00
|
|
|
import sys
|
|
|
|
|
2024-08-05 16:47:24 +00:00
|
|
|
alloc(length Int) -> Pointer {
|
2024-07-28 22:30:26 +00:00
|
|
|
return sys.mmap(0, length, 0x1|0x2, 0x02|0x20|0x100)
|
2024-07-18 19:10:27 +00:00
|
|
|
}
|
|
|
|
|
2024-08-05 16:47:24 +00:00
|
|
|
free(address Pointer, length Int) -> Int {
|
2024-07-18 19:10:27 +00:00
|
|
|
return sys.munmap(address, length)
|
|
|
|
}
|