示例#1
0
        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);
            }
        }
示例#2
0
 public void write(MemoryStream msdata)
 {
     proto_util.writeUInt(msdata, rumorId);
     PRumor.writeLoop(msdata, data);
 }
示例#3
0
 public void read(MemoryStream msdata)
 {
     rumorId = proto_util.readUInt(msdata);
     PRumor.readLoop(msdata, data);
 }