SetLength() public method

public SetLength ( long value ) : void
value long
return void
Beispiel #1
0
 public override void SetLength(long value)
 {
     Contracts.CheckParam(0 <= value, nameof(value), "cannot be negative");
     AssertInvariants();
     Contracts.Check(!_disposed, "Stream already disposed");
     if (value > _overflowBoundary)
     {
         EnsureOverflow();
     }
     MyStream.SetLength(value);
     AssertInvariants();
 }