public void Serialize(NetBitReader reader) { DebugData = reader.ReadBytes(2); if (reader.IsError || !reader.AtEnd()) { } }
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()); }
public void Serialize(NetBitReader reader) { int length = reader.ReadInt32(); EncryptedReplayData = reader.ReadBytes(length); }
public void Serialize(NetBitReader reader) { DebugData = reader.ReadBytes(2); }