SmartMemory Management

BufferProvider.GetBuffer Method 

Returs a buffer with a size between size and size*2. If currently no such buffer is available, a new buffer is allocated.

[Visual Basic]
Public Shared Function GetBuffer( _
   ByVal size As Long _
) As Byte()
[C#]
public static byte[] GetBuffer(
   long size
);

Parameters

size
The required size of the buffer.

Return Value

The new buffer

See Also

BufferProvider Class | InfiniTec.SystemUtilities Namespace