public void WriteToRom(RomIO rom) { if (rom is null) { throw new ArgumentNullException(nameof(rom)); } rom.WriteInt24(Address, Value); }
public void WriteToRom(RomIO rom) { if (rom is null) { throw new ArgumentNullException(nameof(rom)); } rom.WriteBytes(_bytes, Address, CrossBanks); }
public Int24Reference(RomIO rom, int address) { if (rom is null) { throw new ArgumentNullException(nameof(rom)); } Address = address; Value = rom.ReadInt24(address); }
public ArrayReference( RomIO rom, int address, int count, bool crossBanks = true) { if (rom is null) { throw new ArgumentNullException(nameof(rom)); } Address = address; CrossBanks = crossBanks; _bytes = rom.ReadBytes(address, count, crossBanks); Bytes = new Collection <byte>(_bytes); }
public AllStarsRomFile(string path) { Path = path ?? throw new ArgumentNullException(nameof(path)); Rom = new RomIO(File.ReadAllBytes(path)); Smb1RomData = new Smb1.RomData(Rom); }