Adam Cozzette
d7e943b8d2
Update protobuf version
4 years ago
Adam Cozzette
052dc799d2
Update protobuf version
4 years ago
Adam Cozzette
ae50d9b990
Update protobuf version
4 years ago
Adam Cozzette
8260126500
Update protobuf version
4 years ago
Adam Cozzette
e9f2ef308c
Update protobuf version
4 years ago
James Newton-King
c2b22b90fc
PR feedback
4 years ago
James Newton-King
cb246b8032
Optimize writing small strings
4 years ago
James Newton-King
69223b8386
Clean up
4 years ago
James Newton-King
542c0cc9d3
Fix missing key and test
4 years ago
Jon Skeet
f01d9e5601
Add an extension registry option when parsing file descriptors
...
This is important when parsing descriptor sets that contain extensions.
(The alternative is to get the descriptor bytes again for individual
elements, e.g. message descriptors, and reparse them with the
appropriate extensions. It's really ugly.)
4 years ago
Jon Skeet
cea3653a2e
Include the size of values (and tags) for extensions, even if the value is the default
...
Fixes #8218 .
4 years ago
James Newton-King
6cf068c439
Clean up
4 years ago
James Newton-King
e9cc0b0c23
Optimize MapField serialization by removing MessageAdapter
4 years ago
Jan Tattermusch
930ab0f33d
C#: do not use <PublicSign>true</PublicSign> on non-windows
4 years ago
James Newton-King
e794919f6b
PR feedback
4 years ago
James Newton-King
79f5bad83c
Change ByteString to use memory and support unsafe create without copy
4 years ago
Adam Cozzette
f3192d6128
Update protobuf version
4 years ago
James Newton-King
e91922a4e7
Additional test
4 years ago
James Newton-King
e57f761e7b
Fix parsing negative Int32Value that crosses segment boundary
4 years ago
James Newton-King
fdf4ef62a5
Additional test
4 years ago
James Newton-King
d8800ae2f3
Fix parsing negative Int32Value that crosses segment boundary
4 years ago
Adam Cozzette
1b851b3fe6
Update protobuf version
4 years ago
Adam Cozzette
a8ab1fade9
Update protobuf version
4 years ago
James Newton-King
52618472bc
Remove GOOGLE_PROTOBUF_SUPPORT_SYSTEM_MEMORY
4 years ago
Adam Cozzette
27100b40fd
Update protobuf version
4 years ago
Joshua Haberman
b70695dd68
Sync from Piper @338707351
...
PROTOBUF_SYNC_PIPER
4 years ago
Jan Tattermusch
151d49436a
upgrade System.Memory dependency to 4.5.3
4 years ago
CauhxMilloy
090d28e8f7
Null Check in UnknownField::AddAll() ( #7328 )
...
UnknownField::AddAll() is called (multiple times) from UnknownField::MergeFrom(). The `extras` parameter is one of: `varintList`, `fixed32List`, `fixed64List`, `lengthDelimitedList`, or `groupList`. All of these members can be null, and are appropriately checked in other usage. If attempting to parse a proto with unknown extensions, and exception is thrown (NRE).
This adds the appropriate null check inside UnknownField::AddAll().
4 years ago
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
Bas van der Linden
4c1bb4d07b
Remove newline
4 years ago
Bas van der Linden
12d7976055
Added test for ByteString.CopyFrom(ReadOnlySpan<byte> bytes)
4 years ago
Bas van der Linden
ead45182aa
annotate ByteString.CopyFrom(ReadOnlySpan<byte> bytes) as SecuritySafeCritical
4 years ago
Joshua Haberman
25755efc4f
Sync from Piper @319848517
...
PROTOBUF_SYNC_PIPER
5 years ago
James Newton-King
e36163deed
PR feedback
5 years ago
James Newton-King
d4abad8731
Optimize reading strings across segments
5 years ago
Jan Tattermusch
45c8850389
use BinaryPrimitives.WriteUInt64LittleEndian
5 years ago
Jan Tattermusch
1cf4df00cf
C# benchmark improvements
5 years ago
Jan Tattermusch
fed7e18193
upgrade dotnet SDK in the CI to 3.1
5 years ago
Jon Skeet
13d712533e
Fix C# build by regenerating test protos
5 years ago
Jon Skeet
2c1a46101b
Add tests for NullValue not appearing in a oneof at all
5 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.
5 years ago
Jan Tattermusch
4f0afc7852
optimize WriteRawTag
5 years ago