Example #1
0
        public void Serialize(NetBitReader reader)
        {
            _reader = new NetBitReader(reader.ReadBits(reader.GetBitsLeft()));
            _reader.EngineNetworkVersion = reader.EngineNetworkVersion;

            TotalBits = _reader.GetBitsLeft();
        }
        public void Serialize(NetBitReader reader)
        {
            bool validData = reader.ReadBit();

            if (!validData)
            {
                return;
            }

            //???
            reader.Seek(reader.GetBitsLeft(), System.IO.SeekOrigin.Current);
        }
Example #3
0
        private byte[] AsByteArray()
        {
            _reader.Reset();

            return(_reader.ReadBytes((int)Math.Floor(_reader.GetBitsLeft() / 8.0)));
        }
 public void Serialize(NetBitReader reader)
 {
     EncryptedReplayData = reader.ReadBytes(reader.GetBitsLeft() / 8);
 }
Example #5
0
        private byte[] AsByteArray()
        {
            _reader.Reset();

            return(_reader.ReadBytes((int)Math.Ceiling(_reader.GetBitsLeft() / 8.0)).ToArray());
        }