memory handling functions
More...
Go to the source code of this file.
Macros
#define
av_alloc_size(...) __attribute__((alloc_size(__VA_ARGS__)))
Functions
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if available on the CPU).
Allocate or reallocate a block of memory.
Allocate or reallocate a block of memory.
Allocate or reallocate a block of memory.
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if available on the CPU) and zero all the bytes of the block.
Allocate a block of nmemb * size bytes with alignment suitable for all memory accesses (including vectors if available on the CPU) and zero all the bytes of the block.
Duplicate a substring of the string s.
Free a memory block which has been allocated with
av_malloc(z)() or
av_realloc() and set the pointer pointing to it to NULL.
Add an element to a dynamic array.
Add an element to a dynamic array.
Add an element of size elem_size to a dynamic array.
Multiply two size_t values checking for overflow.
Set the maximum size that may me allocated in one block.
deliberately overlapping memcpy implementation
Reallocate the given block if it is not large enough, otherwise do nothing.
Allocate a buffer, reusing the given one if large enough.
Detailed Description
memory handling functions
Definition in file mem.h.