Beispiel #1
0
 public void addToStreamEx(Bundle stream, ENTITYID_LIST v)
 {
     stream.writeUint32((UInt32)v.Count);
     for (int i = 0; i < v.Count; ++i)
     {
         stream.writeInt32(v[i]);
     }
     ;
 }
Beispiel #2
0
        public ENTITYID_LIST createFromStreamEx(MemoryStream stream)
        {
            UInt32        size  = stream.readUint32();
            ENTITYID_LIST datas = new ENTITYID_LIST();

            while (size > 0)
            {
                --size;
                datas.Add(stream.readInt32());
            }
            ;

            return(datas);
        }