Skip to content

Latest commit

 

History

History
89 lines (44 loc) · 991 Bytes

heap_alloc.md

File metadata and controls

89 lines (44 loc) · 991 Bytes

amx_assembly heap_alloc

AMX Assembly Library: Allocate space in the heap.

Functions

HeapAllocBytes:

Allocates a block of (uninitialized) memory on the heap.

Syntax

HeapAllocBytes(nbytes)

Parameters

Name Info
nbytes

Estimated stack usage

2 cells

HeapAllocCells:

Same as HeapAllocBytes() but operates on cells.

Syntax

HeapAllocCells(ncells)

Parameters

Name Info
ncells

Depends on

Estimated stack usage

4 cells

HeapRelease:

Releases memory allocated with HeapAlloc().

Syntax

HeapRelease(address)

Parameters

Name Info
address

Estimated stack usage

1 cells