Skip to content

Commit cfddb3d

Browse files
committed
Maintain consistency between supported structures
1 parent 08512ab commit cfddb3d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SabreTools.Hashing/HashTool.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ public static bool GetStandardHashes(Stream stream, out long size, out string? c
321321
/// Get hashes from an input byte array
322322
/// </summary>
323323
/// <param name="input">Byte array to hash</param>
324+
/// <param name="size">Amount of bytes read during hashing</param>
324325
/// <returns>Dictionary containing hashes on success, null on error</returns>
325326
public static Dictionary<HashType, string?>? GetByteArrayHashesAndSize(byte[] input, out long size)
326327
{
@@ -335,6 +336,7 @@ public static bool GetStandardHashes(Stream stream, out long size, out string? c
335336
/// Get hashes from an input byte array
336337
/// </summary>
337338
/// <param name="input">Byte array to hash</param>
339+
/// <param name="size">Amount of bytes read during hashing</param>
338340
/// <returns>Dictionary containing hashes on success, null on error</returns>
339341
public static Dictionary<HashType, byte[]?>? GetByteArrayHashArraysAndSize(byte[] input, out long size)
340342
{
@@ -350,6 +352,7 @@ public static bool GetStandardHashes(Stream stream, out long size, out string? c
350352
/// </summary>
351353
/// <param name="input">Byte array to hash</param>
352354
/// <param name="hashType">Hash type to get from the file</param>
355+
/// <param name="size">Amount of bytes read during hashing</param>
353356
/// <returns>Hash on success, null on error</returns>
354357
public static string? GetByteArrayHashAndSize(byte[] input, HashType hashType, out long size)
355358
{
@@ -362,6 +365,7 @@ public static bool GetStandardHashes(Stream stream, out long size, out string? c
362365
/// </summary>
363366
/// <param name="input">Byte array to hash</param>
364367
/// <param name="hashType">Hash type to get from the file</param>
368+
/// <param name="size">Amount of bytes read during hashing</param>
365369
/// <returns>Hash on success, null on error</returns>
366370
public static byte[]? GetByteArrayHashArrayAndSize(byte[] input, HashType hashType, out long size)
367371
{
@@ -374,6 +378,7 @@ public static bool GetStandardHashes(Stream stream, out long size, out string? c
374378
/// </summary>
375379
/// <param name="input">Byte array to hash</param>
376380
/// <param name="hashTypes">Array of hash types to get from the file</param>
381+
/// <param name="size">Amount of bytes read during hashing</param>
377382
/// <returns>Dictionary containing hashes on success, null on error</returns>
378383
public static Dictionary<HashType, string?>? GetByteArrayHashesAndSize(byte[] input, HashType[] hashTypes, out long size)
379384
=> GetStreamHashesAndSize(new MemoryStream(input), hashTypes, out size);
@@ -383,6 +388,7 @@ public static bool GetStandardHashes(Stream stream, out long size, out string? c
383388
/// </summary>
384389
/// <param name="input">Byte array to hash</param>
385390
/// <param name="hashTypes">Array of hash types to get from the file</param>
391+
/// <param name="size">Amount of bytes read during hashing</param>
386392
/// <returns>Dictionary containing hashes on success, null on error</returns>
387393
public static Dictionary<HashType, byte[]?>? GetByteArrayHashArraysAndSize(byte[] input, HashType[] hashTypes, out long size)
388394
=> GetStreamHashArraysAndSize(new MemoryStream(input), hashTypes, out size);

0 commit comments

Comments
 (0)