| |||||||||
SummaryAllocates a region of memory for use. | |||||||||
Syntaxvoid * JS_malloc(JSContext *cx, size_t nbytes);
| |||||||||
DescriptionJS_malloc allocates a region of memory nbytes in size. If the allocation is successful, JS_malloc returns a pointer to the beginning of the region.
If the memory cannot be allocated,
As with a standard C call to
| |||||||||
NotesCurrentlyJS_malloc is a wrapper on the standard C malloc call. Do not make assumptions based on this underlying reliance. Future versions of JS_malloc may be implemented in a different manner.
| |||||||||
See Also
|