示例#1
0
        internal sbyte ReadSByte()
        {
            sbyte value = 0;

            if (CheckAndSkipName())
            {
                if (current != currentLast)
                {
                    value = (sbyte)FastToValue.ToUInt32(_buffer, ref position, ',');
                }
                else
                {
                    value = (sbyte)FastToValue.ToUInt32(_buffer, ref position, '}');
                    position++;
                }
                position++;
            }
            return(value);
        }
示例#2
0
        internal ushort ReadUInt16()
        {
            ushort value = 0;

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