Joshua Haberman
95e6c5b474
Sync from Piper @327110949
...
PROTOBUF_SYNC_PIPER
4 years ago
Adam Cozzette
fde7cf7358
Update protobuf version
4 years ago
Adam Cozzette
14982862f5
Removed conflicting C# version line
...
Somehow we ended up with two conflicting versions listed for C#, so this
commit removes the incorrect one (the correct one is 3.13.0-rc3).
4 years ago
Adam Cozzette
98c2e69f8c
Update protobuf version
4 years ago
Peter Newman
e2cc2de304
Fix lots of spelling errors ( #7751 )
...
* Fix a typo
* Fix lots of spelling errors
* Fix a few more spelling mistakes
* s/parsable/parseable/
* Don't touch the third party files
* Cloneable is the preferred C# term
* Copyable is the preferred C++ term
* Revert "s/parsable/parseable/"
This reverts commit 534ecf7675
.
* Revert unparseable->unparsable corrections
4 years ago
Adam Cozzette
1c587a8059
Updated version to 3.13.0-rc2
4 years ago
Jon Skeet
0d90ff3d72
Fix C# optional field reflection when there are regular fields too
...
Previous tests didn't spot this as each message was either "all
optional" or "all non-optional", at which point there isn't a problem.
4 years ago
Adam Cozzette
8940150706
Updated version to 3.13.0-rc1.
4 years ago
Jon Skeet
d4ec70fdd3
Fix C# optional field reflection when there are regular fields too
...
Previous tests didn't spot this as each message was either "all
optional" or "all non-optional", at which point there isn't a problem.
4 years ago
Joshua Haberman
25755efc4f
Sync from Piper @319848517
...
PROTOBUF_SYNC_PIPER
4 years ago
James Newton-King
e36163deed
PR feedback
4 years ago
James Newton-King
d4abad8731
Optimize reading strings across segments
4 years ago
Jan Tattermusch
45c8850389
use BinaryPrimitives.WriteUInt64LittleEndian
4 years ago
Jan Tattermusch
1cf4df00cf
C# benchmark improvements
4 years ago
Jan Tattermusch
fed7e18193
upgrade dotnet SDK in the CI to 3.1
4 years ago
Jon Skeet
13d712533e
Fix C# build by regenerating test protos
4 years ago
Jon Skeet
2c1a46101b
Add tests for NullValue not appearing in a oneof at all
4 years ago
Jon Skeet
0dd5fffba3
Fix JSON parsing and formatting of NullValue in C#
...
The NullValue enum is typically used as part of the Value well-known type, but can be used elsewhere. In previous code, a NullValue field (other than in Value) would result in a JSON value of the string "NULL_VALUE"; it should instead be the null literal.
When parsing, we still accept "NULL_VALUE" as a valid value for NullValue - this new code being unable to parse old data, and comes for free anyway.
4 years ago
Jan Tattermusch
4f0afc7852
optimize WriteRawTag
4 years ago
Jan Tattermusch
2f16981638
optimize WriteVarint64
4 years ago
Jan Tattermusch
9d53fadcac
optimize WriteVarint32
4 years ago
Jan Tattermusch
9ca0877db1
optimize WriteRawBytes
4 years ago
Jan Tattermusch
80780bdffa
optimize WriteRawByte
4 years ago
Jan Tattermusch
6afd469fe0
optimize WriteFixed32 and WriteFixed64
4 years ago
Jan Tattermusch
17a4b181a0
optimize WriteString
4 years ago
Jan Tattermusch
d3557cab21
WriteFloat improvements
4 years ago
Jan Tattermusch
1f56e5e2a4
remove AggressiveInlining attribute from WritingPrimitives.cs
4 years ago
Joshua Haberman
dfab275eca
Sync from Piper @317197168
...
PROTOBUF_SYNC_PIPER
5 years ago
Joshua Haberman
f77065d4eb
Sync from Piper @316511779
...
PROTOBUF_SYNC_PIPER
5 years ago
Jan Tattermusch
468c3ba8c6
Speed up writing of messages with many fields
5 years ago
Jan Tattermusch
6a69690464
basic version of WriteMessagesBenchmark
5 years ago
Jon Skeet
1dae8fdd62
Add support for proto2 JSON parsing in C# conformance tests
5 years ago
Jon Skeet
ff70af6cfc
Changes how JSON formatting works for fields supporting presence
...
Fixes #7486 .
Note that this changes the behavior for message fields where
"WithFormatDefaultValues(true)" has been specified. This is
effectively fixing a bug, but will need to be noted in the release
notes.
Basically, FormatDefaultValues only affects fields that don't
support presence - most commonly, singular primitive non-optional
fields in proto3.
5 years ago
Jan Tattermusch
549dc9a412
optimize writing fixed32 and fixed64, fix benchmark
5 years ago
Jan Tattermusch
5eec497d3b
fix C# CompatibilityTests
5 years ago
Jan Tattermusch
e346fde63b
remove commented out code
5 years ago
Jan Tattermusch
c06812b0b2
address a few TODOs
5 years ago
Jan Tattermusch
19c0d73fb9
test WriteContext writing with multiple flushes
5 years ago
Jan Tattermusch
53708e2f15
test writing to a stackalloc buffer
5 years ago
Jan Tattermusch
e14a5c8fe6
address a few TODOs
5 years ago
Jan Tattermusch
43dcee2fa9
remove some todos
5 years ago
Jan Tattermusch
3375e251f9
optimize writing non-ascii strings
5 years ago
Jan Tattermusch
3dad187707
add benchmark for writing of NonAsciiStrings
5 years ago
Jan Tattermusch
8a2d5884bf
address review comments
5 years ago
Jan Tattermusch
a296413b5a
optimize WriteFloat
5 years ago
Jan Tattermusch
886c263a3c
initial version of write benchmarks
5 years ago
Jan Tattermusch
a6d1ed1712
annotate ByteString.Span and ByteString.Memory as SecuritySafeCritical
5 years ago
Jan Tattermusch
b2c94974b2
remove a TODO
5 years ago
Jan Tattermusch
56372898cf
test writing with different blocksizes
5 years ago
Jan Tattermusch
f9f92a6dd2
increase test coverage
5 years ago