SmartMemory Management

SmartMemoryStream.SetLength Method 

Sets the length of the buffer to the specified value.

[Visual Basic]
Overrides Public Sub SetLength( _
   ByVal value As Long _
)
[C#]
public override void SetLength(
   long value
);

Parameters

value
The new length of the stream.

Remarks

If the new length is smaller than the current length, the stream is effectivly truncated.

If the new length exceeds the capacity of the stream, it will be adjusted to accomodate for the new length.

See Also

SmartMemoryStream Class | InfiniTec.SystemUtilities Namespace