Exemple #1
0
            void ISerializer <List <T> > .deserialize(ref MessageBuffer mb, ref List <T> value)
            {
                value.Clear();
                int l = mb.readInt();

                for (int i = 0; i < l; i++)
                {
                    T v = default(T);
                    deserialize(ref mb, ref v);
                    value.Add(v);
                }
            }
Exemple #2
0
        public static void deserializeWithType <T>(ref MessageBuffer mb, ref T value)
        {
            int type = mb.readInt(); //typeInfo

            deserialize(ref mb, ref value);
        }