Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
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 Apr 15, 2019
b522e0c
Update Utf8JsonWriter ref and main writer file.
ahsonkhan Apr 15, 2019
341d937
Fix JsonWriter WriteValue APIs.
ahsonkhan Apr 15, 2019
9caf27c
Use Environment.NewLine static and invert some stream conditions.
ahsonkhan Apr 15, 2019
38a3834
Update JsonWriter properties and fix serializer build breaks.
ahsonkhan Apr 16, 2019
61f51c4
Update JsonWriter unit tests.
ahsonkhan Apr 16, 2019
1406858
Add xml comments, clean up, and improve test coverage.
ahsonkhan Apr 17, 2019
449d935
Update JsonDocument and JsonSerializer to react to JsonWriter changes.
ahsonkhan Apr 17, 2019
ec4d03f
Normalize the reference assembly.
ahsonkhan Apr 17, 2019
5a060d1
Do not escape/validate comments and update issue number.
ahsonkhan Apr 17, 2019
fc5c82a
Do not escape comments and validate they don't contain embedded
ahsonkhan Apr 17, 2019
b44b6b8
Merge branch 'master' of https://github.com/dotnet/corefx into Redesi…
ahsonkhan Apr 17, 2019
d6213e3
Remove dead code and update issue number in comments.
ahsonkhan Apr 17, 2019
50e832c
Throw InvalidOEx instead of ArgEx if IBW doesn't give requested memory.
ahsonkhan Apr 17, 2019
f94ca69
Fix test build breaks for netfx.
ahsonkhan Apr 17, 2019
6aa5efc
Remove dead code and fix source packaging.
ahsonkhan Apr 18, 2019
5af4802
Merge branch 'master' of https://github.com/dotnet/corefx into Redesi…
ahsonkhan Apr 18, 2019
695c9df
Address PR feedback.
ahsonkhan Apr 18, 2019
4cecd6a
Disable writing floats test on windows
ahsonkhan Apr 18, 2019
4d7a90e
8 digit floats don't work well on older TFMs. Reduce to 7.
ahsonkhan Apr 18, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test build breaks for netfx.
  • Loading branch information
ahsonkhan committed Apr 17, 2019
commit f94ca69a96188510393b81b2ef8aa79d354607c6
3 changes: 3 additions & 0 deletions src/System.Text.Json/tests/Resources/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -20268,4 +20268,7 @@ tiline\"another\" String\\"],"str":"\"\""}</value>
}
}</value>
</data>
<data name="BufferWriterAdvancedTooFar" xml:space="preserve">
<value>Cannot advance past the end of the buffer, which has a size of {0}.</value>
</data>
</root>
5 changes: 4 additions & 1 deletion src/System.Text.Json/tests/Utf8JsonWriterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,10 @@ private static async Task WriteLargeToStreamHelper(Stream stream, JsonWriterOpti
{
const int SyncWriteThreshold = 25_000;

await using var jsonUtf8 = new Utf8JsonWriter(stream, options);
#if !netstandard
await
#endif
using var jsonUtf8 = new Utf8JsonWriter(stream, options);

byte[] utf8String = Encoding.UTF8.GetBytes("some string 1234");

Expand Down