Skip to content

Commit 1a9c8b5

Browse files
committed
Scaffolding for the future
1 parent 831a272 commit 1a9c8b5

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

SabreTools.Serialization/Models/CDROM/DataSector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace SabreTools.Data.Models.CDROM
44
/// A CD-ROM data sector
55
/// </summary>
66
/// <see href="https://ecma-international.org/wp-content/uploads/ECMA-130_2nd_edition_june_1996.pdf"/>
7-
public abstract class DataSector
7+
public abstract class DataSector : ISO9660.Sector
88
{
99
/// <summary>
1010
/// Sync pattern, 12 bytes
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
namespace SabreTools.Data.Models.ISO9660
2+
{
3+
/// <summary>
4+
/// An ISO-9660 data sector
5+
/// </summary>
6+
/// <see href="https://ecma-international.org/wp-content/uploads/ECMA-119_5th_edition_december_2024.pdf"/>
7+
public abstract class DataSector : Sector
8+
{
9+
// Data sectors only contain user data
10+
// TODO: Create user data base class for all single-sector structures
11+
// TODO: Create generic data sector with byte array data
12+
// TODO: Update CD-ROM models to take advantage of this
13+
}
14+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace SabreTools.Data.Models.ISO9660
2+
{
3+
/// <summary>
4+
/// Represents a generic sector for a disc image
5+
/// </summary>
6+
public abstract class Sector
7+
{
8+
// There are no common fields between all sector types
9+
}
10+
}

0 commit comments

Comments
 (0)