AudRecordLib
|
#include <DataBufferWrap.h>
Public Member Functions | |
NativeDataBufferWrap (INSSBuffer *pBuffer) | |
virtual IntPtr | GetBuffer () |
virtual IntPtr | GetBufferAndLength ([Out] DWORD% length) |
virtual DWORD | GetLength () |
virtual DWORD | GetMaxLength () |
virtual void | SetLength (DWORD newLength) |
Simple managed wrapper around a native INSSBuffer, when one needs to be passed to a method of a ITargetSink
NativeDataBufferWrap::NativeDataBufferWrap | ( | INSSBuffer * | pBuffer | ) |
Constructs the wrapper around the specified INSSBuffer
pBuffer | The buffer to wrap |
IntPtr NativeDataBufferWrap::GetBuffer | ( | ) | [virtual] |
Wraps a native pointer returned by the native method of the same name in an IntPtr for easier managed consumption
Implements AudRecordCLI::IDataBuffer.
IntPtr NativeDataBufferWrap::GetBufferAndLength | ( | [Out] DWORD% | length | ) | [virtual] |
Does a job similar to GetBuffer with the addition of returning the length parameter.
[out] | length | The size of the allocated buffer pointed to by the returned IntPtr |
Implements AudRecordCLI::IDataBuffer.
DWORD NativeDataBufferWrap::GetLength | ( | ) | [virtual] |
Queries the current number of bytes used in the buffer, set by a previous call to SetLength
Implements AudRecordCLI::IDataBuffer.
DWORD NativeDataBufferWrap::GetMaxLength | ( | ) | [virtual] |
Queries the maximum size the buffer can be set to by SetLength
Implements AudRecordCLI::IDataBuffer.
void NativeDataBufferWrap::SetLength | ( | DWORD | newLength | ) | [virtual] |
Updates the number of bytes used in this buffer. Used by the Windows Media code to know how many bytes to copy from the buffer
newLength | Bytes used |
Implements AudRecordCLI::IDataBuffer.