Skip to content

mem.Alloc

Allocate memory with read+write access.

Syntax

mem.Alloc(size:int)

Parameters

size Size of memory to allocate.

Return value

Returns the address of the memory allocated. If the memory could not get allocated returns nil.