HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_MemUtil.h File Reference
#include "UT_API.h"
#include <SYS/SYS_Types.h>
#include <stddef.h>
+ Include dependency graph for UT_MemUtil.h:

Go to the source code of this file.

Enumerations

enum  UTmemAdvice {
  UT_MEM_ADVICE_NONE, UT_MEM_ADVICE_RANDOM, UT_MEM_ADVICE_SEQ, UT_MEM_ADVICE_NEEDSOON,
  UT_MEM_ADVICE_DONE
}
 

Functions

UT_API int UTmemAdvise (void *mem, size_t bytes, UTmemAdvice advice)
 
UT_API void UTmemsetChunk (void *dest, const void *value, exint valuesize, exint ncopies)
 
UT_API size_t UTmallocSize (size_t size)
 
UT_API void UTdumpHeap ()
 
UT_API void UTdumpMemory (void *base)
 
UT_API void UTtrimUnusedHeapMemory ()
 Attempt to free unused heap allocated memory. More...
 

Enumeration Type Documentation

Enumerator
UT_MEM_ADVICE_NONE 
UT_MEM_ADVICE_RANDOM 
UT_MEM_ADVICE_SEQ 
UT_MEM_ADVICE_NEEDSOON 
UT_MEM_ADVICE_DONE 

Definition at line 21 of file UT_MemUtil.h.

Function Documentation

UT_API void UTdumpHeap ( )
UT_API void UTdumpMemory ( void base)
UT_API size_t UTmallocSize ( size_t  size)
UT_API int UTmemAdvise ( void mem,
size_t  bytes,
UTmemAdvice  advice 
)
UT_API void UTmemsetChunk ( void dest,
const void value,
exint  valuesize,
exint  ncopies 
)
UT_API void UTtrimUnusedHeapMemory ( )

Attempt to free unused heap allocated memory.