HM_ExtAPI::MemoryAlloc()

Allocates memory block of specified size.

Syntax

void* MemoryAlloc(
unsigned int byte_size
);

Type

HyperMesh Ext API Function

Description

The function HM_ExtAPI::MemoryFree() must be used to release the memory allocated within the call to MemoryAlloc function.

If the function succeeds, the return value is the pointer to allocated memory block. If the function fails, the return value is NULL. To get extended error information, call HM_ExtAPI::GetLastErrorCode().

Requires including hm_extapi.h.

Inputs

byte_size
[in] - The size of allocated memory block.

Errors

None.