Ejemplo n.º 1
0
        private int GetChars(int iOffset, int iLength, char[] iChars, int iCharOffset)
        {
            byte[] currentBuffer = this.buffer;
            for (int index = 0; index < iLength; ++index)
            {
                byte num = currentBuffer[offset + index];

                if (num >= BufferAllocation)
                {
                    return(index + XmlConverter.ToChars(currentBuffer, offset + index, iLength - index, iChars, iCharOffset + index));
                }

                iChars[iCharOffset + index] = (char)num;
            }
            return(iLength);
        }
Ejemplo n.º 2
0
        private int GetChars(int iOffset, int iLength, char[] iChars)
        {
            byte[] currentBuffer = this.buffer;
            for (int charOffset = 0; charOffset < iLength; ++charOffset)
            {
                byte num = currentBuffer[iOffset + charOffset];

                if (num >= BufferAllocation)
                {
                    return(charOffset + XmlConverter.ToChars(currentBuffer, iOffset + charOffset, iLength - charOffset, iChars, charOffset));
                }

                iChars[charOffset] = (char)num;
            }
            return(iLength);
        }