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; } }
/// <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)); }