示例#1
0
        public override void derialize(ByteBuffer bu)
        {
            base.derialize(bu);

            bu.readUnsignedInt16(ref count);
            list = new List <CardListItem>();
            CardListItem item;
            int          idx = 0;

            while (idx < count)
            {
                item = new CardListItem();
                list.Add(item);
                item.derialize(bu);
                ++idx;
            }
        }
示例#2
0
        public override void derialize(ByteBuffer bu)
        {
 	        base.derialize(bu);

            bu.readUnsignedInt16(ref count);
            list = new List<CardListItem>();
            CardListItem item;
            int idx = 0;
            while(idx < count)
            {
                item = new CardListItem();
                list.Add(item);
                item.derialize(bu);
                ++idx;
            }
        }