private void RecvServiceTable(byte[] data) { CTdirServiceTable table = new CTdirServiceTable { appBuff = new byte[0x200] }; table.Decode(data); this.mServiceTable.updateTime = table.updateTime; this.mServiceTable.bitMap = table.bitMap; this.mServiceTable.userAttr = table.userAttr; this.mServiceTable.zoneID = table.zoneID; this.mServiceTable.appLen = table.appLen; if (0 < table.appLen) { this.mServiceTable.appBuff = new byte[table.appLen]; for (int i = 0; i < table.appLen; i++) { this.mServiceTable.appBuff[i] = table.appBuff[i]; } } this.isServiceTableEnable = true; }
private void RecvServiceTable(byte[] data) { CTdirServiceTable cTdirServiceTable = new CTdirServiceTable(); cTdirServiceTable.appBuff = new byte[512]; cTdirServiceTable.Decode(data); this.mServiceTable.updateTime = cTdirServiceTable.updateTime; this.mServiceTable.bitMap = cTdirServiceTable.bitMap; this.mServiceTable.userAttr = cTdirServiceTable.userAttr; this.mServiceTable.zoneID = cTdirServiceTable.zoneID; this.mServiceTable.appLen = cTdirServiceTable.appLen; if (0u < cTdirServiceTable.appLen) { this.mServiceTable.appBuff = new byte[cTdirServiceTable.appLen]; int num = 0; while ((long)num < (long)((ulong)cTdirServiceTable.appLen)) { this.mServiceTable.appBuff[num] = cTdirServiceTable.appBuff[num]; num++; } } this.isServiceTableEnable = true; }