Returns a buffer to the pool.
Namespace: Microsoft.WindowsAzure.Storage
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Usage
| Visual Basic |
|---|
Dim instance As IBufferManager
Dim buffer As Byte()
instance.ReturnBuffer(buffer) |
Syntax
| Visual Basic |
|---|
Sub ReturnBuffer ( _
buffer As Byte() _
) |
| C# |
|---|
void ReturnBuffer (
byte[] buffer
) |
| C++ |
|---|
void ReturnBuffer (
array<unsigned char>^ buffer
) |
| J# |
|---|
void ReturnBuffer (
byte[] buffer
) |
| JScript |
|---|
function ReturnBuffer (
buffer : byte[]
) |
Parameters
- buffer
A byte array specifying the buffer to return to the pool.
Exceptions
| Exception type | Condition |
|---|
| ArgumentNullException | Buffer reference cannot be null. |
| ArgumentException | Length of buffer does not match the pool's buffer length property. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also