Click or drag to resize
OffsetBufferExtensionsReadBuffer Method
Reads a buffer from an OffsetBuffer and increments OffsetBuffer.Offset while decrementing OffsetBuffer.Count.

Namespace: StreamCoders.Helpers
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public static OffsetBuffer<byte> ReadBuffer(
	this OffsetBuffer<byte> buffer,
	int bytesToRead
)

Parameters

buffer
Type: StreamCodersOffsetBufferByte
The buffer to read from.
bytesToRead
Type: SystemInt32

Return Value

Type: OffsetBufferByte
The extracted buffer.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OffsetBufferByte. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also