IBufferManager.TakeBuffer(Int32) Method

Definition

Gets a buffer of the specified size or larger from the pool.

public byte[] TakeBuffer (int bufferSize);
abstract member TakeBuffer : int -> byte[]
Public Function TakeBuffer (bufferSize As Integer) As Byte()

Parameters

bufferSize
Int32

The size, in bytes, of the requested buffer.

Returns

Byte[]

A byte array that is the requested size of the buffer.

Exceptions

The value specified for bufferSize cannot be less than zero.

Applies to