Skip to content

Commit dc2db86

Browse files
authored
Add missing <returns> documentation to NonCryptographicHashAlgorithm
1 parent dd0a628 commit dc2db86

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/libraries/System.IO.Hashing/src/System/IO/Hashing/NonCryptographicHashAlgorithm.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ public void Append(Stream stream)
133133
/// The token to monitor for cancellation requests.
134134
/// The default value is <see cref="CancellationToken.None"/>.
135135
/// </param>
136+
/// <returns>
137+
/// A task that represents the asynchronous append operation.
138+
/// </returns>
136139
/// <exception cref="ArgumentNullException">
137140
/// <paramref name="stream"/> is <see langword="null"/>.
138141
/// </exception>
@@ -172,6 +175,9 @@ private async Task AppendAsyncCore(Stream stream, CancellationToken cancellation
172175
/// <summary>
173176
/// Gets the current computed hash value without modifying accumulated state.
174177
/// </summary>
178+
/// <returns>
179+
/// The hash value for the data already provided.
180+
/// </returns>
175181
public byte[] GetCurrentHash()
176182
{
177183
byte[] ret = new byte[HashLengthInBytes];
@@ -230,6 +236,9 @@ public int GetCurrentHash(Span<byte> destination)
230236
/// <summary>
231237
/// Gets the current computed hash value and clears the accumulated state.
232238
/// </summary>
239+
/// <returns>
240+
/// The hash value for the data already provided.
241+
/// </returns>
233242
public byte[] GetHashAndReset()
234243
{
235244
byte[] ret = new byte[HashLengthInBytes];

0 commit comments

Comments
 (0)