public void read(MemoryStream msdata) { pos = proto_util.readUShort(msdata); PRankRole.readLoop(msdata, role); proto_util.readLoopUInt(msdata, data); PGoods.readLoop(msdata, goodsList); }
public void write(MemoryStream msdata) { proto_util.writeUShort(msdata, pos); PRankRole.writeLoop(msdata, role); proto_util.writeLoopUInt(msdata, data); PGoods.writeLoop(msdata, goodsList); }
public static void readLoop(MemoryStream msdata, List <PRankRole> p) { int Len = proto_util.readShort(msdata); for (int i = 0; i < Len; i++) { PRankRole _pm = new PRankRole(); _pm.read(msdata); p.Add(_pm); } }