Skip to content

Commit

Permalink
Cleanup the stream converter based on PR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcpopMSFT committed Sep 3, 2024
1 parent b77171d commit c920345
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ private static string BuildPreprocessedContentHash(IReadOnlyDictionary<string, s
}
}

stream.Position = 0;

return BitConverter.ToString(XxHash3.Hash(stream.ToArray())).Replace("-", "");
return BitConverter.ToString(XxHash3.Hash(stream.GetBuffer().AsSpan(0, (int)stream.Length))).Replace("-", "");
}
}
}
Expand Down

0 comments on commit c920345

Please sign in to comment.