Click or drag to resize
LockableOffsetBufferProviderTAcquireBuffer Method
Finds or creates a new MediaBuffer object based on the bufferSize criteria. AllowGrow must be set in order to create new MediaBuffer objects.

Namespace: StreamCoders
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public T AcquireBuffer(
	int bufferSize,
	bool exactSize = false
)

Parameters

bufferSize
Type: SystemInt32
SizeIncludingHeader of the MediaBuffer to look for.
exactSize (Optional)
Type: SystemBoolean
if true, AcquireMediaBuffer will look for a buffer with the exact size provided by bufferSize, otherwise the condition is "greater-or-equal".

Return Value

Type: T
MediaBuffer object.

Implements

ILockableBufferProviderTAcquireBuffer(Int32, Boolean)
See Also