Example #1
0
            public void Add(byte[] obj)
            {
                if (Reconstructor == null)
                {
                    throw new Exception("got binary data when not reconstructing a packet");
                }

                var packet = Reconstructor.TakeBinaryData(obj);

                if (packet != null)
                {
                    Reconstructor = null;
                    Emit(EVENT_DECODED, packet);
                }
            }