Skip to content

Commit 21d6570

Browse files
Minor comment changes to make copilot happy
1 parent ce802a6 commit 21d6570

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Analyzer/Util/SerializedFileDetector.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class SerializedFileInfo
2121
///
2222
/// Unity SerializedFiles have evolved through several format versions:
2323
///
24-
/// Version < 9:
24+
/// Version < 9:
2525
/// - 20-byte header (SerializedFileHeader32) with 32-bit offsets/sizes
2626
/// - Layout: [header][data][metadata]
2727
/// - Endianness byte stored at END of file, just before metadata
@@ -32,14 +32,14 @@ public class SerializedFileInfo
3232
/// - Endianness byte at offset 16 in header
3333
/// - Limited to 4GB file sizes
3434
///
35-
/// Version &gt;= 22 (kLargeFilesSupport):
35+
/// Version >= 22 (kLargeFilesSupport):
3636
/// - 48-byte header (SerializedFileHeader) with 64-bit offsets/sizes
3737
/// - Layout: [header][metadata][data]
3838
/// - Endianness byte at offset 40 in header
3939
/// - Supports files larger than 4GB
4040
///
4141
/// Important: The header itself is always stored in big-endian format on disk,
42-
/// but the m_Endianess byte indicates the endianness of the actual data section.
42+
/// but the m_Endianness byte indicates the endianness of the actual data section.
4343
/// </summary>
4444
public static class SerializedFileDetector
4545
{
@@ -135,7 +135,7 @@ public static bool TryDetectSerializedFile(string filePath, out SerializedFileIn
135135
// STEP 2: Read endianness byte
136136
// ============================================================
137137
//
138-
// The m_Endianess byte indicates the endianness of the DATA section
138+
// The m_Endianness byte indicates the endianness of the DATA section
139139
// (not the header, which is always big-endian on disk).
140140
// Location depends on version:
141141
// - Version < 9: At end of file (before metadata) - we skip reading it for detection
@@ -199,10 +199,10 @@ public static bool TryDetectSerializedFile(string filePath, out SerializedFileIn
199199
// Offset 4-7: UInt32 m_FileSize
200200
// Offset 8-11: UInt32 m_Version
201201
// Offset 12-15: UInt32 m_DataOffset
202-
// Offset 16: UInt8 m_Endianess (only present for version >= 9)
202+
// Offset 16: UInt8 m_Endianness (only present for version >= 9)
203203
// Offset 17-19: UInt8 m_Reserved[3]
204204
//
205-
// Note: For version < 9, m_Endianess is NOT in the header.
205+
// Note: For version < 9, m_Endianness is NOT in the header.
206206
// It's stored at the end of the file, just before metadata begins.
207207

208208
uint metadataSize32 = ReadUInt32(headerBytes, 0, needsSwap);
@@ -229,7 +229,7 @@ public static bool TryDetectSerializedFile(string filePath, out SerializedFileIn
229229
// Offset 16-23: UInt64 m_MetadataSize
230230
// Offset 24-31: UInt64 m_FileSize
231231
// Offset 32-39: UInt64 m_DataOffset
232-
// Offset 40: UInt8 m_Endianess
232+
// Offset 40: UInt8 m_Endianness
233233
// Offset 41-47: UInt8[7] m_Reserved1
234234

235235
metadataSize = ReadUInt64(headerBytes, 16, needsSwap);

0 commit comments

Comments
 (0)