public static void readLoop(MemoryStream msdata, List <PRumor> p) { int Len = proto_util.readShort(msdata); for (int i = 0; i < Len; i++) { PRumor _pm = new PRumor(); _pm.read(msdata); p.Add(_pm); } }
public void write(MemoryStream msdata) { proto_util.writeUInt(msdata, rumorId); PRumor.writeLoop(msdata, data); }
public void read(MemoryStream msdata) { rumorId = proto_util.readUInt(msdata); PRumor.readLoop(msdata, data); }