Esempio n. 1
0
 public static Instruction Deserialize(StringTable table, BinaryReader reader) => new Instruction
 {
     Address    = reader.ReadUInt32(),
     Mnemonic   = table[reader.ReadInt32()],
     ByteString = table[reader.ReadInt32()]
 };
Esempio n. 2
0
 public void Serialize(StringTable table, BinaryWriter writer)
 {
     writer.Write(Address);
     writer.Write(table.GetKey(Mnemonic));
     writer.Write(table.GetKey(ByteString));
 }