SmartMemoryManagement

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]
Shared Public Function GetBuffer( _ 
   ByVal size As Long _ 
) As Byte()
[C#]
public static byte[] GetBuffer(
   long size
);
[C++]
public: static char GetBuffer(
   __int64 size
)  __gc[];
[JScript]
public static function GetBuffer(
   long size
): Byte[];

Parameters

size
The required size of the buffer.

Return Value

The new buffer

See Also

BufferProvider Class | InfiniTec.SystemUtilities Namespace