public override void SetLength(long value) { CheckIfStreamClosed(); _sb.SetLength(value); if (_lPosition > value) _lPosition = value; }