My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
otz_tee_mem_mgmt.c File Reference
#include <sw_buddy.h>
#include <sw_types.h>
#include <sw_debug.h>
#include <libc_sos.h>
#include <sw_mem_functions.h>
#include <otz_tee_mem_mgmt.h>
#include <otz_tee_common.h>

Functions

void * TEE_Malloc (size_t size, u32 hint)
 allocates space for an object whose size in bytes is specified in the parameter size More...
 
void * TEE_Realloc (void *buffer, u32 newSize)
 changes the size of the memory object pointed to by buffer to the size specified by newSize More...
 
void TEE_Free (void *buffer)
 causes the space pointed to by buffer to be deallocated that is, made available for further allocation More...
 
void TEE_MemMove (void *dest, void *src, u32 count)
 copies count bytes from the object pointed to by src into the object pointed to by dest More...
 
int TEE_MemCompare (void *src, void *dest, u32 length)
 compares the first length bytes of buffer1 to the first length bytes of buffer2 More...
 
void TEE_MemFill (void *buffer, u32 x, u32 size)
 writes the byte x into the first size bytes of the buffer More...
 
void TEE_MemCpy (void *dest, void *src, u32 count)
 copies the first count bytes of src to the first count bytes of dest More...
 

Function Documentation

void TEE_Free ( void *  buffer)

causes the space pointed to by buffer to be deallocated that is, made available for further allocation

Parameters
buffer
void* TEE_Malloc ( size_t  size,
u32  hint 
)

allocates space for an object whose size in bytes is specified in the parameter size

Parameters
size
hint
Returns
int TEE_MemCompare ( void *  src,
void *  dest,
u32  length 
)

compares the first length bytes of buffer1 to the first length bytes of buffer2

Parameters
src
dest
length
Returns
void TEE_MemCpy ( void *  dest,
void *  src,
u32  count 
)

copies the first count bytes of src to the first count bytes of dest

Parameters
dest
src
count
void TEE_MemFill ( void *  buffer,
u32  x,
u32  size 
)

writes the byte x into the first size bytes of the buffer

Parameters
buffer
x
size
void TEE_MemMove ( void *  dest,
void *  src,
u32  count 
)

copies count bytes from the object pointed to by src into the object pointed to by dest

Parameters
dest
src
count
void* TEE_Realloc ( void *  buffer,
u32  newSize 
)

changes the size of the memory object pointed to by buffer to the size specified by newSize

Parameters
buffer
newSize
Returns