This repository was archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Re-design Utf8JsonWriter as a regular class rather than a ref struct. #36961
Merged
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
a19d268
Add an in-box array-backed IBufferWriter<T>
ahsonkhan b522e0c
Update Utf8JsonWriter ref and main writer file.
ahsonkhan 341d937
Fix JsonWriter WriteValue APIs.
ahsonkhan 9caf27c
Use Environment.NewLine static and invert some stream conditions.
ahsonkhan 38a3834
Update JsonWriter properties and fix serializer build breaks.
ahsonkhan 61f51c4
Update JsonWriter unit tests.
ahsonkhan 1406858
Add xml comments, clean up, and improve test coverage.
ahsonkhan 449d935
Update JsonDocument and JsonSerializer to react to JsonWriter changes.
ahsonkhan ec4d03f
Normalize the reference assembly.
ahsonkhan 5a060d1
Do not escape/validate comments and update issue number.
ahsonkhan fc5c82a
Do not escape comments and validate they don't contain embedded
ahsonkhan b44b6b8
Merge branch 'master' of https://github.com/dotnet/corefx into Redesi…
ahsonkhan d6213e3
Remove dead code and update issue number in comments.
ahsonkhan 50e832c
Throw InvalidOEx instead of ArgEx if IBW doesn't give requested memory.
ahsonkhan f94ca69
Fix test build breaks for netfx.
ahsonkhan 6aa5efc
Remove dead code and fix source packaging.
ahsonkhan 5af4802
Merge branch 'master' of https://github.com/dotnet/corefx into Redesi…
ahsonkhan 695c9df
Address PR feedback.
ahsonkhan 4cecd6a
Disable writing floats test on windows
ahsonkhan 4d7a90e
8 digit floats don't work well on older TFMs. Reduce to 7.
ahsonkhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update JsonDocument and JsonSerializer to react to JsonWriter changes.
- Loading branch information
commit 449d935ed7a6ac9b13f3922cd609cdec664360f4
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: you don't actually need a temp here; it can be a single line to parallel the other else case, e.g.
or something like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided to keep changes outside of the writer minimal, but that would work.
However, your suggestion does make it a bit harder to read (but VS coloring would help).
cc @steveharter