Memory

#import Builtin:Memory;

A builtin module adding useful memory management tools

Functions


malloc(int)

 malloc::*int(b : int64)

Allocates a block of memory

Arguments

b
int64
int64 The number of bytes to allocate

Returns:

A pointer to the allocated memory block

free(pointer)

 free::(p : *int)

Frees a block of memory previously allocated by malloc

Arguments

p
*int
Pointer to the memory block to free