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.220-beta+a56b2444ff27b37e053039e60f062b99378309bd
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