pulse.xmalloc

Undocumented in source.

Members

Functions

_pa_xnew0_internal
void* _pa_xnew0_internal(size_t n, size_t k)

Internal helper for pa_xnew0()

_pa_xnew0_internal
void* _pa_xnew0_internal(size_t n, size_t k)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_pa_xnew_internal
void* _pa_xnew_internal(size_t n, size_t k)

Internal helper for pa_xnew()

_pa_xnew_internal
void* _pa_xnew_internal(size_t n, size_t k)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_pa_xnewdup_internal
void* _pa_xnewdup_internal(const(void)* p, size_t n, size_t k)

Internal helper for pa_xnew0()

_pa_xnewdup_internal
void* _pa_xnewdup_internal(const(void)* p, size_t n, size_t k)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_pa_xrenew_internal
void* _pa_xrenew_internal(void* p, size_t n, size_t k)

Internal helper for pa_xrenew()

_pa_xrenew_internal
void* _pa_xrenew_internal(void* p, size_t n, size_t k)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
pa_xfree
void pa_xfree(void* p)

Free allocated memory

pa_xmalloc
void* pa_xmalloc(size_t l)

Allocate the specified number of bytes, just like malloc() does. However, in case of OOM, terminate

pa_xmalloc0
void* pa_xmalloc0(size_t l)

Same as pa_xmalloc(), but initialize allocated memory to 0

pa_xmemdup
void* pa_xmemdup(const(void)* p, size_t l)

Duplicate the specified memory block

pa_xrealloc
void* pa_xrealloc(void* ptr, size_t size)

The combination of pa_xmalloc() and realloc()

pa_xstrdup
char* pa_xstrdup(const(char)* s)

Duplicate the specified string, allocating memory with pa_xmalloc()

pa_xstrndup
char* pa_xstrndup(const(char)* s, size_t l)

Duplicate the specified string, but truncate after l characters

Meta