mem.c File Reference

default memory allocator for libavutil More...

#include "config.h"
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "avutil.h"
#include "mem.h"

Go to the source code of this file.

Functions

voidav_malloc (size_t size)
 Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if available on the CPU). More...
 
voidav_realloc (void *ptr, size_t size)
 Allocate or reallocate a block of memory. More...
 
void av_free (void *ptr)
 Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). More...
 
void av_freep (void *arg)
 Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer pointing to it to NULL. More...
 
voidav_mallocz (size_t size)
 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. More...
 
char * av_strdup (const char *s)
 Duplicate the string s. More...
 

Detailed Description

default memory allocator for libavutil

Definition in file mem.c.