Miam-Player  0.8.0
A nice music player
mem.h File Reference
#include <limits.h>
#include <stdint.h>
#include "attributes.h"
#include "error.h"
#include "avutil.h"

Go to the source code of this file.

Macros

#define DECLARE_ALIGNED(n, t, v)   t v
 
#define DECLARE_ASM_CONST(n, t, v)   static const t v
 
#define av_malloc_attrib
 
#define av_alloc_size(...)
 

Functions

void * av_malloc (size_t size) av_malloc_attrib av_alloc_size(1)
 
void * av_mallocz (size_t size) av_malloc_attrib av_alloc_size(1)
 
 av_alloc_size (1, 2) static inline void *av_malloc_array(size_t nmemb
 
return av_malloc (nmemb *size)
 
return av_mallocz (nmemb *size)
 
void * av_calloc (size_t nmemb, size_t size) av_malloc_attrib
 
void * av_realloc (void *ptr, size_t size) av_alloc_size(2)
 
av_warn_unused_result int av_reallocp (void *ptr, size_t size)
 
void * av_realloc_f (void *ptr, size_t nelem, size_t elsize)
 
 av_alloc_size (2, 3) void *av_realloc_array(void *ptr
 
void * av_fast_realloc (void *ptr, unsigned int *size, size_t min_size)
 
void av_fast_malloc (void *ptr, unsigned int *size, size_t min_size)
 
void av_fast_mallocz (void *ptr, unsigned int *size, size_t min_size)
 
void av_free (void *ptr)
 
void av_freep (void *ptr)
 
char * av_strdup (const char *s) av_malloc_attrib
 
char * av_strndup (const char *s, size_t len) av_malloc_attrib
 
void * av_memdup (const void *p, size_t size)
 
void av_memcpy_backptr (uint8_t *dst, int back, int cnt)
 
void av_dynarray_add (void *tab_ptr, int *nb_ptr, void *elem)
 
av_warn_unused_result int av_dynarray_add_nofree (void *tab_ptr, int *nb_ptr, void *elem)
 
void * av_dynarray2_add (void **tab_ptr, int *nb_ptr, size_t elem_size, const uint8_t *elem_data)
 
void av_max_alloc (size_t max)
 

Variables

size_t size
 
size_t nmemb
 

Detailed Description

Memory handling functions