示例#1
0
            int NextInt()
            {
                Next();

                if (io.IsSigned())
                {
                    return(io.ValueSigned);
                }
                else if (io.IsUnsigned())
                {
                    return((int)io.ValueUnsigned);
                }
                else
                {
                    throw new Error(ErrorCode.TYPE_MISMATCH, "Got type: " + io.Type);
                }
            }