public int __decode(byte[] binData, ref int pos) { Proto4z.ui32 offset = 0; Proto4z.ui64 tag = 0; offset.__decode(binData, ref pos); offset.val += (System.UInt32)pos; tag.__decode(binData, ref pos); retCode = new Proto4z.ui16(); if ((tag.val & ((System.UInt64)1 << 0)) != 0) { retCode.__decode(binData, ref pos); } users = new UserInfoArray(); if ((tag.val & ((System.UInt64)1 << 1)) != 0) { users.__decode(binData, ref pos); } return (int)offset.val; }
public int __decode(byte[] binData, ref int pos) { Proto4z.ui32 offset = 0; Proto4z.ui64 tag = 0; offset.__decode(binData, ref pos); offset.val += (System.UInt32)pos; tag.__decode(binData, ref pos); retCode = new Proto4z.ui16(); if ((tag.val & ((System.UInt64)1 << 0)) != 0) { retCode.__decode(binData, ref pos); } uID = new Proto4z.ui64(); if ((tag.val & ((System.UInt64)1 << 1)) != 0) { uID.__decode(binData, ref pos); } token = new Proto4z.String(); if ((tag.val & ((System.UInt64)1 << 2)) != 0) { token.__decode(binData, ref pos); } ip = new Proto4z.String(); if ((tag.val & ((System.UInt64)1 << 3)) != 0) { ip.__decode(binData, ref pos); } port = new Proto4z.ui16(); if ((tag.val & ((System.UInt64)1 << 4)) != 0) { port.__decode(binData, ref pos); } return (int)offset.val; }