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); }