void ISerializable.Deserialize(BEReader reader) { TitleId = reader.ReadUInt32(); // This is weird: HasFocus = reader.ReadByte() == 128; TitleLocation = (ActiveTitleLocation)reader.ReadByte(); ProductId = new Guid(reader.ReadBytes(16)); SandboxId = new Guid(reader.ReadBytes(16)); AumId = reader.ReadString(); }
public override void Deserialize(BEReader reader) { if (reader.ReadByte() == 1) { ConnectionInfo = new AuxiliaryStreamConnectionInfo(); ConnectionInfo.Deserialize(reader); } }
public void TestByte() { Assert.Equal <byte>(4, _reader.ReadByte()); Assert.Equal <byte>(0, _reader.ReadByte()); Assert.Equal <byte>(0, _reader.ReadByte()); Assert.Equal <byte>(0, _reader.ReadByte()); Assert.Equal <byte>(0x41, _reader.ReadByte()); }
public void TestByte() { Assert.AreEqual(4, _reader.ReadByte()); Assert.AreEqual(0, _reader.ReadByte()); Assert.AreEqual(0, _reader.ReadByte()); Assert.AreEqual(0, _reader.ReadByte()); Assert.AreEqual(0x41, _reader.ReadByte()); }
public override void Deserialize(BEReader reader) { Unknown = reader.ReadByte(); }