This method of the DllLib class allocates a native memory block by invoking the Win32 function CoTaskMemAlloc.
public static int allocCoTaskMem(int cb);
Returns a pointer to the allocated block.
cb | The required size of the memory block (in bytes). |
OutOfMemoryError if allocation fails.