AudRecordLib
Functions
AudRecordCLI/DataBufferWrap.cpp File Reference

Implements the managed wrapper around the INSSBuffer interface and th native wrapper around. More...

#include "stdafx.h"
#include "DataBufferWrap.h"
#include <exception>

Functions

AudRecordCLI::IDataBufferWrapNativeBuffer (INSSBuffer *pBuffer)
INSSBuffer * WrapManagedBuffer (AudRecordCLI::IDataBuffer^ pBuffer)

Detailed Description

Implements the managed wrapper around the INSSBuffer interface and th native wrapper around.


Function Documentation

INSSBuffer* WrapManagedBuffer ( AudRecordCLI::IDataBuffer pBuffer)

Does the business of allocating a wrapper for a managed DataBuffer. If an exception is thrown by new, it's caught and logged before NULL is returned

Parameters:
pBufferThe buffer to wrap
Returns:
An INSSBuffer interface on a new ManagedDataBufferWrap object or NULL if allocation fails
AudRecordCLI::IDataBuffer ^ WrapNativeBuffer ( INSSBuffer *  pBuffer)

Allocates a NativeDataBufferWrap object around a native pointer

Parameters:
pBufferThe buffer interface to wrap
Returns:
The interface pointer to the new data buffer
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Defines