MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / XnGetAllocTypeString

Function XnGetAllocTypeString

Source/OpenNI/XnOSMemoryProfiling.cpp:75–94  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Code ---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

73// Code
74//---------------------------------------------------------------------------
75const XnChar* XnGetAllocTypeString(XnAllocationType nType)
76{
77 switch (nType)
78 {
79 case XN_ALLOCATION_MALLOC:
80 return "xnOSMalloc";
81 case XN_ALLOCATION_MALLOC_ALIGNED:
82 return "xnOSMallocAligned";
83 case XN_ALLOCATION_CALLOC:
84 return "xnOSCalloc";
85 case XN_ALLOCATION_CALLOC_ALIGNED:
86 return "xnOSCallocAligned";
87 case XN_ALLOCATION_NEW:
88 return "XN_NEW";
89 case XN_ALLOCATION_NEW_ARRAY:
90 return "XN_NEW_ARR";
91 default:
92 return "Unknown";
93 }
94}
95
96XN_C_API void* xnOSLogMemAlloc(void* pMemBlock, XnAllocationType nAllocType, XnUInt32 nBytes, const XnChar* csFunction, const XnChar* csFile, XnUInt32 nLine, const XnChar* csAdditional)
97{

Callers 2

xnOSLogMemAllocFunction · 0.85
xnOSWriteMemoryReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected