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
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
5 years ago
Jan Tattermusch
9d53fadcac
optimize WriteVarint32
5 years ago
Jan Tattermusch
9ca0877db1
optimize WriteRawBytes
5 years ago
Jan Tattermusch
80780bdffa
optimize WriteRawByte
5 years ago
Jan Tattermusch
6afd469fe0
optimize WriteFixed32 and WriteFixed64
5 years ago
Jan Tattermusch
17a4b181a0
optimize WriteString
5 years ago
Jan Tattermusch
d3557cab21
WriteFloat improvements
5 years ago
Jan Tattermusch
1f56e5e2a4
remove AggressiveInlining attribute from WritingPrimitives.cs
5 years ago
Phil Felton
115af28e8f
Make propertyName public
5 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