コード例 #1
0
ファイル: marshall.cs プロジェクト: bitdotgames/bhl
            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);
                }
            }