SetLength() публичный Метод

public SetLength ( long l ) : void
l long
Результат void
Пример #1
0
 public override void Flush()
 {
     if (_modified)
     {
         SourceStream.SetLength(0);
         _stream.Position = 0;
         StreamUtility.CopyStream(_stream, SourceStream);
         _modified            = false;
         _sourcePositionReset = true;
         _stream.Position     = 0;
         _sourceLength        = _stream.Length;
     }
 }
Пример #2
0
 /// <summary>
 /// Sets the length of the underlying stream
 /// </summary>
 public override void SetLength(long value)
 {
     SourceStream.SetLength(value);
 }
 /// <summary>
 /// Sets the length of the underlying stream according to the converted
 /// length of float bytes.
 /// </summary>
 /// <param name="value"></param>
 protected override void InternalSetLength(long value)
 {
     SourceStream.SetLength(ToFloatSpace(value));
 }