MyStream.SetLength C# (CSharp) Method

SetLength() public method

public SetLength ( long value ) : void
value long
return void
 public override void SetLength(long value)  { }
 public override string ToString()  {return null; }

Usage Example

コード例 #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();
 }