示例#1
0
        internal byte ReadByte()
        {
            byte value = 0;

            if (CheckAndSkipName())
            {
                if (current != currentLast)
                {
                    value = (byte)FastToValue.ToInt32(_buffer, ref position, ',');
                }
                else
                {
                    value = (byte)FastToValue.ToInt32(_buffer, ref position, '}');
                    position++;
                }
                position++;
            }
            return(value);
        }
示例#2
0
        internal short ReadInt16()
        {
            short value = 0;

            if (CheckAndSkipName())
            {
                if (current != currentLast)
                {
                    value = (short)FastToValue.ToInt32(_buffer, ref position, ',');
                }
                else
                {
                    value = (short)FastToValue.ToInt32(_buffer, ref position, '}');
                    position++;
                }
                position++;
            }
            return(value);
        }