|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
26 #ifndef __AAMP_MEMORY_UTILS_H__
27 #define __AAMP_MEMORY_UTILS_H__
32 #define SHM_ACCESS_PERMISSION 0666
33 #define SHMGET_RETRY_MAX 10
56 void *aamp_Realloc(
void *ptr,
size_t numBytes );
95 void * aamp_CreateSharedMem(
size_t shmLen, key_t & shmKey);
102 void aamp_CleanUpSharedMem(
void* shmPointer, key_t shmKey,
size_t shmLen);
void aamp_AppendBytes(struct GrowableBuffer *buffer, const void *ptr, size_t len)
append data to GrowableBuffer ADT
void * aamp_Malloc(size_t numBytes)
wrapper for g_malloc, used for segment allocation
void aamp_MoveBytes(struct GrowableBuffer *buffer, const void *ptr, size_t len)
Move data to buffer.
void aamp_Free(void *ptr)
wrapper for g_free, used for segment allocation
Structure of GrowableBuffer.
void aamp_AppendNulTerminator(struct GrowableBuffer *buffer)
Append nul character to buffer.
void aamp_TransferMemory(void *ptr)
called when ownership of memory of injected fragments passed to gstreamer