Exemplo n.º 1
0
        public void Deserialize <T>(byte[] _bytes, Action <T> _callBack)
        {
            DeserializeInThreadUnit <T> data = new DeserializeInThreadUnit <T>();

            data.callBack = _callBack;
            data.bytes    = _bytes;

            list.Add(data);

            Thread thread = new Thread(data.Start);

            thread.Start();
        }
Exemplo n.º 2
0
        public void Deserialize <T>(byte[] _bytes, Action <T> _callBack)
        {
            DeserializeInThreadUnit <T> unit = new DeserializeInThreadUnit <T>();

            unit.Init(_bytes, _callBack);
        }