Table of Contents

Property CapacityLong

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

CapacityLong

Gets or sets the number of bytes allocated for this stream as a long integer.

public virtual long CapacityLong { get; set; }

Property Value

long

The length of the usable portion of the buffer for the stream as a long integer.

Remarks

For current compatibility with MemoryStream and Stream classes, no instances of MemoryStreamSlim can have a capacity greater than MaxValue. This property is simply a convenience to allow setting and getting the capacity as a long integer. The Capacity property should be used for all normal operations.

Exceptions

ArgumentOutOfRangeException

The capacity is set to a value less than zero or greater than MaximumCapacity.