|Microsoft DirectX 9.0|
The SetLength method specifies the length of the data currently in the buffer.
HRESULT SetLength( DWORD cbLength );
Size of the data, in bytes. The value must not exceed the buffer's maximum size. Call the IMediaBuffer::GetMaxLength method to obtain the maximum size.
Returns S_OK if successful. Otherwise, returns an HRESULT value indicating the cause of the error.
This method sets the size of the valid data currently in the buffer, not the buffer's allocated size.