RDK Documentation (Open Sourced RDK Components)
FakeAampMemoryUtils.cpp
1 /*
2 * If not stated otherwise in this file or this component's license file the
3 * following copyright and licenses apply:
4 *
5 * Copyright 2022 RDK Management
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19 
20 #include "AampMemoryUtils.h"
21 
22 void aamp_AppendBytes(struct GrowableBuffer *buffer, const void *ptr, size_t len)
23 {
24 }
25 
26 void aamp_Free(struct GrowableBuffer *buffer)
27 {
28 }
29 
30 void aamp_Free(void *buffer)
31 {
32 }
33 
34 void aamp_AppendNulTerminator(struct GrowableBuffer *buffer)
35 {
36 }
37 
38 void aamp_TransferMemory( void *ptr )
39 {
40 }
41 
42 void *aamp_Malloc( size_t numBytes )
43 {
44 }
45 
46 void aamp_Malloc(struct GrowableBuffer *buffer, size_t len)
47 {
48 }
49 
aamp_Free
void aamp_Free(void *ptr)
wrapper for g_free, used for segment allocation
Definition: AampMemoryUtils.cpp:56
aamp_Malloc
void * aamp_Malloc(size_t numBytes)
wrapper for g_malloc, used for segment allocation
Definition: AampMemoryUtils.cpp:68
aamp_AppendNulTerminator
void aamp_AppendNulTerminator(struct GrowableBuffer *buffer)
Append nul character to buffer.
Definition: AampMemoryUtils.cpp:156
AampMemoryUtils.h
Header file of helper functions for memory management.
aamp_TransferMemory
void aamp_TransferMemory(void *ptr)
called when ownership of memory of injected fragments passed to gstreamer
Definition: AampMemoryUtils.cpp:81
GrowableBuffer
Structure of GrowableBuffer.
Definition: AampMemoryUtils.h:39
aamp_AppendBytes
void aamp_AppendBytes(struct GrowableBuffer *buffer, const void *ptr, size_t len)
append data to GrowableBuffer ADT
Definition: AampMemoryUtils.cpp:108