#include <stddef.h>
#include <stdint.h>
#include "attributes.h"
Go to the source code of this file.
Macros
Functions
Allocate a memory block with alignment suitable for all memory accesses (including vectors if available on the CPU).
More...
Allocate a memory block with alignment suitable for all memory accesses (including vectors if available on the CPU) and zero all the bytes of the block.
More...
Allocate, reallocate, or free a block of memory.
More...
Allocate, reallocate, or free a block of memory through a pointer to a pointer.
More...
void *
av_realloc_f (void *ptr, size_t nelem, size_t elsize)
Allocate, reallocate, or free a block of memory.
More...
Allocate, reallocate an array through a pointer to a pointer.
More...
Reallocate the given buffer if it is not large enough, otherwise do nothing.
More...
Allocate a buffer, reusing the given one if large enough.
More...
Allocate and clear a buffer, reusing the given one if large enough.
More...
Free a memory block which has been allocated with a function of
av_malloc() or
av_realloc() family, and set the pointer pointing to it to
NULL.
More...
Duplicate a substring of a string.
More...
Overlapping memcpy() implementation.
More...
Add the pointer to an element to a dynamic array.
More...
Add an element to a dynamic array.
More...
void *
av_dynarray2_add (void **tab_ptr, int *nb_ptr, size_t elem_size, const uint8_t *elem_data)
Add an element of size
elem_size to a dynamic array.
More...
Multiply two
size_t values checking for overflow.
More...
Set the maximum size that may be allocated in one block.
More...
Detailed Description
Memory handling functions
Definition in file mem.h.