Refactor SecuritySector struct to adjust Unknown11 size and add RangeVersion and RangeCount fields

This commit is contained in:
2026-07-06 19:08:31 +01:00
parent 66f0161638
commit 898c22c3e6

View File

@@ -77,7 +77,9 @@ public static class SS
Unknown8 = new byte[16],
Unknown9 = new byte[16],
Unknown10 = new byte[303],
Unknown11 = new byte[104],
Unknown11 = new byte[103],
RangeVersion = response[1631],
RangeCount = response[1632],
Extents = new SecuritySectorExtent[23],
ExtentsCopy = new SecuritySectorExtent[23]
};
@@ -110,7 +112,7 @@ public static class SS
Array.Copy(response, 1120, ss.Unknown8, 0, 16);
Array.Copy(response, 1180, ss.Unknown9, 0, 16);
Array.Copy(response, 1208, ss.Unknown10, 0, 303);
Array.Copy(response, 1528, ss.Unknown11, 0, 104);
Array.Copy(response, 1528, ss.Unknown11, 0, 103);
for(var i = 0; i < 23; i++)
{
@@ -406,8 +408,12 @@ public static class SS
public byte[] Unknown9;
/// <summary>Bytes 1208 to 1511 Unknown</summary>
public byte[] Unknown10;
/// <summary>Bytes 1528 to 1632</summary>
/// <summary>Bytes 1528 to 1630</summary>
public byte[] Unknown11;
/// <summary>Byte 1631 Range version</summary>
public byte RangeVersion;
/// <summary>Byte 1632 Number of valid security extent ranges</summary>
public byte RangeCount;
/// <summary>Bytes 1633 to 1839 Security extents, 23 entries of 9 bytes</summary>
public SecuritySectorExtent[] Extents;
/// <summary>Bytes 1840 to 2047 Copy of the security extents, 23 entries of 9 bytes</summary>