private void WriteRecord(int i, BiosPartitionRecord newRecord) { _diskData.Position = 0; byte[] bootSector = Utilities.ReadFully(_diskData, Utilities.SectorSize); newRecord.WriteTo(bootSector, 0x01BE + (i * 16)); _diskData.Position = 0; _diskData.Write(bootSector, 0, bootSector.Length); }
private void WriteRecord(int i, BiosPartitionRecord newRecord) { _diskData.Position = 0; byte[] bootSector = StreamUtilities.ReadExact(_diskData, Sizes.Sector); newRecord.WriteTo(bootSector, 0x01BE + i * 16); _diskData.Position = 0; _diskData.Write(bootSector, 0, bootSector.Length); }