Click or drag to resize

BufferPoolTakeBuffer Method

Gets a buffer of at least the specified size from the pool.

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public static byte[] TakeBuffer(
	int bufferSize
)
View Source

Parameters

bufferSize  Int32
The size, in bytes, of the requested buffer.

Return Value

Byte
A byte array that is the requested size of the buffer.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionbufferSize cannot be less than zero.
See Also