Search completed in 1.34 seconds.
5 results for "ns_realloc":
NS_Realloc
Mozilla › Tech › XPCOM › Reference › Core functions › NS Realloc
This pointer must have been previously allocated by the XPCOM memory manager, or this parameter may be null in which case this function behaves like NS_Alloc. aSize [in] The size in bytes of the block to allocate, or zero if the given block is to be freed. ...
Choosing the right memory allocator
Mozilla › Choosing the right memory allocator
h should be used under what circumstances. Allocating memory in XPCOM These are general purpose memory-management routines that you should use unless your code falls into one of the other categories below. Use these if you link against XPCOM or XPCOM Glue; this includes extensions with binary components. See the XPCOM string guide for additional information. NS_Alloc() == nsIMemory::alloc() NS_Realloc() == nsIMemory::realloc() NS_Free() == nsIMemory::free() nsMemory::Clone() (note: not part of nsIMemory) See Infallible memory allocation for information about how to allocate memory infallibly; that is, how to use memory allocators that will only return valid memory buffers, and never return null. Allocating strings in XPCOM code See "Callee-allocated Parameters" in the XPCOM Strings guide...
Index
Mozilla › Tech › XPCOM › Index
nce The NS_NewLocalFile function creates an instance of nsILocalFile that provides a platform independent representation of a file path. 136 NS_NewNativeLocalFile Functions, Functions:Frozen, XPCOM, XPCOM API Reference The NS_NewNativeLocalFile function creates an instance of nsILocalFile that provides a platform independent representation of a file path. 137 NS_Realloc Functions, Functions:Frozen, XPCOM, XPCOM API Reference Reallocates a block of memory using the XPCOM memory manager. 138 NS_ShutdownXPCOM Functions, Functions:Frozen, XPCOM, XPCOM API Reference The NS_ShutdownXPCOM function terminates use of XPCOM in the calling process. 139 nsresult Errors, Mozilla, Reference, Reference(2), XPCOM, XPCOM API Referenc...
NS_GetMemoryManager
Mozilla › Tech › XPCOM › Reference › Core functions › NS GetMemoryManager
e to the XPCOM Memory Manager. Return Values The NS_GetMemoryManager function returns NS_OK if successful. Otherwise, it returns an error code. Remarks The object returned is a singleton that is valid until NS_ShutdownXPCOM is called. The interface pointer should be Release'd when it is no longer needed. Any code, intended to be used exclusively with Mozilla 1.8 and above, may use NS_Alloc, NS_Realloc, and NS_Free instead to access the XPCOM Memory Manager's methods. History This function was finalized for Mozilla 0.9.7. See bug 112262 for details. See Also nsIMemory, NS_Alloc ...
Core XPCOM functions
Mozilla › Tech › XPCOM › Reference › Core functions
es use of XPCOM in the calling process with support for statically defined XPCOM modules. NS_NewLocalFileThe NS_NewLocalFile function creates an instance of nsILocalFile that provides a platform independent representation of a file path.NS_NewNativeLocalFileThe NS_NewNativeLocalFile function creates an instance of nsILocalFile that provides a platform independent representation of a file path.NS_ReallocReallocates a block of memory using the XPCOM memory manager.NS_ShutdownXPCOMThe NS_ShutdownXPCOM function terminates use of XPCOM in the calling process.nsresultThe nsresult data type is a strongly-typed enum used to represent a value returned by an XPCOM function; these are typically error or status codes. For a list of defined result values, see Error codes returned by Mozilla APIs. ...