Search completed in 0.85 seconds.
3 results for "PR_Alloc":
nss tech note4
MozillaProjectsNSSNSS Tech Notesnss tech note4
this uses pr_alloc to allocate buffer for the decoded value, the caller should free up the storage allocated in value->data.
... this uses pr_alloc to allocate buffer for the decoded value, the caller should free up the storage allocated in value->data.
Choosing the right memory allocator
MozillaChoosing the right memory allocator
pr_alloc() (do not use, no users and only exists in /security/; use pr_malloc() instead) pr_malloc() == pr_malloc pr_calloc() == pr_calloc pr_realloc() == pr_realloc pr_free() pr_new (pass in a struct to allocate its size) pr_newzap (same as pr_new, but zeros memory) pr_delete (pr_free() and also clears the pointer) pr_freeif special cases pr_smprintf(), pr_sprintf_append(...
NSS API Guidelines
MozillaProjectsNSSNSS API Guidelines
nss makes use of traditional memory allocation functions, wrapping nspr's pr_alloc in a util function called port_alloc.