nsIMemory:alloc
From MDC
Contents |
[edit] Summary
Allocates a block of memory of a particular size.
[noscript, notxpcom] voidPtr alloc( in size_t aSize );
[edit] Parameters
- aSize
- [in] The size of the block to allocate.
[edit] Return Values
This method returns nsnull if the memory allocation fails. Otherwise, it returns a pointer to the newly allocated memory segment. The result must be freed with a call to nsIMemory::free when it is no longer needed.