コード例 #1
0
ファイル: marshall.cs プロジェクト: bitdotgames/bhl
            public void ReadRaw(ref byte[] v, ref int vlen)
            {
                Next();

                if (!io.IsRaw())
                {
                    throw new Error(ErrorCode.TYPE_MISMATCH, "Got type: " + io.Type);
                }

                vlen = (int)io.Length;
                if (v.Length < vlen)
                {
                    Array.Resize(ref v, vlen);
                }
                io.ReadValueRaw(v, 0, vlen);
            }