Skip to content

Commit af79408

Browse files
committed
Update comments
1 parent ab159f4 commit af79408

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

GVFS/GVFS.Common/HealthCalculator/EnlistmentHydrationSummary.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,14 @@ internal static int GetIndexFileCount(GVFSEnlistment enlistment, PhysicalFileSys
9191
{
9292
return -1;
9393
}
94-
/* The number of files in the index is a big-endian integer from bytes 9-12 of the index file. */
94+
/* The number of files in the index is a big-endian integer from
95+
* the 4 bytes at offsets 8-11 of the index file. */
9596
indexFile.Position = 8;
9697
var bytes = new byte[4];
97-
indexFile.Read(bytes, 0, 4);
98+
indexFile.Read(
99+
bytes, // Destination buffer
100+
offset: 0, // Offset in destination buffer, not in indexFile
101+
count: 4);
98102
if (BitConverter.IsLittleEndian)
99103
{
100104
Array.Reverse(bytes);

0 commit comments

Comments
 (0)