Messenger Plus! Live - Scripting Documentation

The Interop::Allocate function allocates a memory block of the given size for low level operations.

Syntax

[object] Allocate(
    [number] InitialSize
);

Parameters

InitialSize
[number] Initial size allocated for the memory block, in bytes. It must be in the range of 0 to 16MB.

Return Value

A DataBloc object that can be used to access the newly allocated memory.

If memory allocation fails, the return value is null.

Remarks

Use this function to allocate memory for specific constructs sometimes required by functions called in Call. This kind of operation is reserved to more advanced developers used to manipulate raw data in memory and can result in causing serious issues if used incorrectly.

Function Information

Object Interop
Availability Messenger Plus! Live 4.00

See Also

Interop Object, DataBloc Object, Call.