/** 编码 */ @Override public void encode(Data data) { data.writeLong(this.userId); data.writeString(this.userName); data.writeInt(this.career); data.writeInt(this.level); }
/** 编码 */ @Override public void encode(Data data) { data.writeInt(list.size()); for (FortGameLogArrayItem item : list) { data.writeString(item.getParamStr1()); data.writeString(item.getParamStr2()); } }
/** 编码 */ @Override public void encode(Data data) { data.writeInt(list.size()); for (UserIdNameArrayItem item : list) { data.writeLong(item.getUserId()); data.writeString(item.getUserName()); data.writeInt(item.getCareer()); data.writeInt(item.getLevel()); } }
/** 编码 */ @Override public void encode(Data data) { data.writeString(this.paramStr1); data.writeString(this.paramStr2); }