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.245-beta+94213ae9d4d0aa7a2c48e5398b12d267b99f868a
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