Allocate a specified amount of memory.
void* Malloc (PRUint32 nBytes)=0;
The method has the following parameter:
nBytes |
The size in bytes of the memory to be allocated. |
A pointer to the allocated memory on success, or NULL on failure.
Use this method in the same way as its C or C++ counterpart.