System.IO.StreamReader.CompressBuffer C# (CSharp) Method

CompressBuffer() private method

private CompressBuffer ( int n ) : void
n int
return void
        private void CompressBuffer(int n)
        {
            Debug.Assert(_byteLen >= n, "CompressBuffer was called with a number of bytes greater than the current buffer length.  Are two threads using this StreamReader at the same time?");
            Buffer.BlockCopy(_byteBuffer, n, _byteBuffer, 0, _byteLen - n);
            _byteLen -= n;
        }