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); }
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); }
private byte[] AsByteArray() { _reader.Reset(); return(_reader.ReadBytes((int)Math.Ceiling(_reader.GetBitsLeft() / 8.0)).ToArray()); }