IBufferManager.TakeBuffer(Int32) Method

Definition

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

C#
public byte[] TakeBuffer(int bufferSize);

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

Product Versions
Azure SDK for .NET Legacy, Latest