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.218-beta+101eee949414e414795e55a6e73d88938f0177b8
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