IBufferManager.TakeBuffer Method (Int32) (Microsoft.WindowsAzure.Storage)
From Microsoft Windows Azure Storage Blob
C#
C++
F#
VB
Gets a buffer of the specified size or larger from the pool.
Namespace:
Microsoft.WindowsAzure.Storage
Assembly:
Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
Parameters
- bufferSize
-
Type:
System.Int32System::Int32System.Int32System.Int32
The size, in bytes, of the requested buffer.
Return Value
Type:
System.Byte[]array<System::Byte>^System.Byte[]System.Byte()A byte array that is the requested size of the buffer.
Exceptions
Exception
Condition
ArgumentOutOfRangeException The value specified for bufferSize cannot be less than zero.
Return to top
Gets a buffer of the specified size or larger from the pool.
Syntax
Parameters
- bufferSize
-
Type:
System.Int32System::Int32System.Int32System.Int32
The size, in bytes, of the requested buffer.
Return Value
Type: System.Byte[]array<System::Byte>^System.Byte[]System.Byte()A byte array that is the requested size of the buffer.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The value specified for bufferSize cannot be less than zero. |