RTools.Util.CharBuffer.ShiftToZero C# (CSharp) Method

ShiftToZero() protected method

Move the buffer contents such that headIndex becomes 0.
protected ShiftToZero ( ) : void
return void
        protected void ShiftToZero()
        {
            int len = Length;
            for (int i = 0; i < len; i++)
            {
                buffer[i] = buffer[i + headIndex];
            }
            headIndex = 0;
            tailIndex = len;
        }