Revenj.Utility.ChunkedMemoryStream.SetLength C# (CSharp) Méthode

SetLength() public méthode

Set new length of the stream. Adjusts the current position if new length is larger then it.
public SetLength ( long value ) : void
value long new length
Résultat void
        public override void SetLength(long value)
        {
            TotalSize = (int)value;
            if (CurrentPosition > TotalSize)
                CurrentPosition = TotalSize;
        }