OpenNI 1.5.4: XnGeneralBuffer.h File Reference

OpenNI

XnGeneralBuffer.h File Reference
#include "XnPlatform.h" #include "XnOS.h"
#include "XnStatusCodes.h"

Go to the source code of this file.

Classes

struct  XnGeneralBuffer

Defines

#define XN_PACK_GENERAL_BUFFER(x)   XnGeneralBufferPack(&x, sizeof(x))
#define XN_VALIDATE_GENERAL_BUFFER_TYPE(gb, t)

Typedefs

typedef struct XnGeneralBuffer XnGeneralBuffer

Functions

XnGeneralBuffer XnGeneralBufferPack (void *pData, XnUInt32 nDataSize)
XnStatus XnGeneralBufferCopy (XnGeneralBuffer *pDest, const XnGeneralBuffer *pSrc)
XnStatus XnGeneralBufferAlloc (XnGeneralBuffer *pDest, XnUInt32 nSize)
XnStatus XnGeneralBufferRealloc (XnGeneralBuffer *pDest, XnUInt32 nSize)
void XnGeneralBufferFree (XnGeneralBuffer *pDest)

Define Documentation

#define XN_PACK_GENERAL_BUFFER (   x)    XnGeneralBufferPack(&x, sizeof(x))
#define XN_VALIDATE_GENERAL_BUFFER_TYPE (   gb,
 
)
Value:
if ((gb).nDataSize != sizeof(t))            \
    {                                           \
        return XN_STATUS_INVALID_BUFFER_SIZE;   \
    }

Typedef Documentation


Function Documentation

XnStatus XnGeneralBufferAlloc ( XnGeneralBuffer pDest,
XnUInt32  nSize 
) [inline]
XnStatus XnGeneralBufferCopy ( XnGeneralBuffer pDest,
const XnGeneralBuffer pSrc 
) [inline]

Copies one general buffer into another.

void XnGeneralBufferFree ( XnGeneralBuffer pDest) [inline]
XnGeneralBuffer XnGeneralBufferPack ( void *  pData,
XnUInt32  nDataSize 
) [inline]

Packs a pointer and a size into an XnGeneralBuffer struct.

XnStatus XnGeneralBufferRealloc ( XnGeneralBuffer pDest,
XnUInt32  nSize 
) [inline]
Generated on Wed May 16 2012 10:16:05 for OpenNI 1.5.4 by   doxygen 1.7.5.1