RDK Documentation (Open Sourced RDK Components)
AampMemoryUtils.cpp File Reference

Helper functions for memory management. More...

#include "AampMemoryUtils.h"
#include "AampConfig.h"
#include <assert.h>
#include <glib.h>
#include <errno.h>
Include dependency graph for AampMemoryUtils.cpp:

Go to the source code of this file.

Functions

static void NETMEMORY_PLUS (void)
 
static void NETMEMORY_MINUS (void)
 
void aamp_Free (void *ptr)
 wrapper for g_free, used for segment allocation
 
void * aamp_Malloc (size_t numBytes)
 wrapper for g_malloc, used for segment allocation
 
void aamp_TransferMemory (void *ptr)
 called when ownership of memory of injected fragments passed to gstreamer
 
void aamp_Free (struct GrowableBuffer *buffer)
 free "GrowableBuffer" memopry allocated by aamp_Malloc
 
void aamp_AppendBytes (struct GrowableBuffer *buffer, const void *ptr, size_t len)
 append data to GrowableBuffer ADT
 
void aamp_MoveBytes (struct GrowableBuffer *buffer, const void *ptr, size_t len)
 Move data to buffer.
 
void aamp_AppendNulTerminator (struct GrowableBuffer *buffer)
 Append nul character to buffer.
 

Variables

static int gNetMemoryCount
 
static int gNetMemoryHighWatermark
 

yes

Helper functions for memory management.

Definition in file AampMemoryUtils.cpp.