Name
AllocMem -- allocate a new memory block (V2.0)
Synopsis
[id] = AllocMem(id, size)
Function
This command allocates a new memory block of the specified size and makes it available under the handle id, or, if you specify Nil in id AllocMem() automatically chooses a vacant identifier and returns it. The memory will not be initialized and is therefore filled with random data. If you want to initialize it to zero, use the FillMem() command.

Inputs
id
identifier for the memory block or Nil for auto id selection
size
size for the memory block in bytes
Results
id
optional: identifier of the memory block; will only be returned when you pass Nil as argument 1 (see above)

Show TOC