Jan Tattermusch
ba61d76e52
simplify serialization to single span
5 years ago
Jan Tattermusch
b3cdba1cfd
increase test coverage
5 years ago
Jan Tattermusch
7bfaaba534
cleanup coded output stream
5 years ago
Jan Tattermusch
9039103637
message extensions + refactor
5 years ago
Jan Tattermusch
8dbf707aa0
add more tests
5 years ago
Jan Tattermusch
1e1d455423
add WriteFloat TODO
5 years ago
Jan Tattermusch
2bce090f32
add more tests
5 years ago
Jan Tattermusch
ecbb29d354
add WriteContext.Flush() method
5 years ago
Jan Tattermusch
3cdc107bda
fix bug in RefreshBuffer
5 years ago
James Newton-King
921bdaaa61
Improve repeated fixed parsing performance
5 years ago
Jan Tattermusch
90d4969bd1
LegacyGeneratedCodeTest now passing
5 years ago
Jan Tattermusch
361c933a58
annotate ByteString.Span and ByteString.Memory as SecuritySafeCritical
5 years ago
Jan Tattermusch
9070389516
regenerate code
5 years ago
Jan Tattermusch
ea1d55927d
test are almost passing
5 years ago
Jan Tattermusch
125e4ad267
regenerate C# protos
5 years ago
Jan Tattermusch
d3eddf7e2d
make everything build, with some TODOs
5 years ago
Jan Tattermusch
ca7bc464a9
make all writing use WriteContext
5 years ago
Jan Tattermusch
c17af44172
apply SecuritySafeCritical attribute
5 years ago
Jan Tattermusch
5742a64eea
fix WriteString bug
5 years ago
Jan Tattermusch
5fc49bdd5a
fix a bunch of bugs
5 years ago
Jan Tattermusch
d0e08f546d
entire solution builds now
5 years ago
Jan Tattermusch
ee6b20afbe
CodedOutputStream adjustments
5 years ago
Jan Tattermusch
f9d9019e27
more progress
5 years ago
Jan Tattermusch
fe147994c8
progress: stuff almost builds now
5 years ago
Jan Tattermusch
a329764603
fix typo in ParserInternalState
5 years ago
Jan Tattermusch
c855561c54
initial implementation of buffer encoding
5 years ago
Jan Tattermusch
7cb5597013
Overcome the `ref struct` limitation for pre-roslyn compilers by introducing GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE for generated code ( #7490 )
...
* enable compatibility mode in codegen
* regenerate protos
* improve readability
* more robust way of figuring out path to old C# compiler
* add recent C# changes
5 years ago
Joshua Haberman
9ce8c330e7
Updated version to 3.12.3 and updated CHANGES.txt. ( #7580 )
...
* Updated version to 3.12.3 and updated CHANGES.txt.
* Re-ran generate_descriptor_protos.sh and made it more parallel.
5 years ago
Jan Tattermusch
040b2a6d07
C# project cleanup
5 years ago
Joshua Haberman
beeb621f50
Update protobuf version ( #7557 )
5 years ago
Joshua Haberman
0a737d8eb0
Sync from Piper @313142438
...
PROTOBUF_SYNC_PIPER
5 years ago
Joshua Haberman
6ad138d85a
Update protobuf version ( #7535 )
5 years ago
Joshua Haberman
9952e36f92
Merge release branch into master. ( #7517 )
...
* Added background information about proto3 presence. (#7501 )
* Fixed bug in map key sorting for Java TextFormat. (#7508 )
Fixes: https://github.com/protocolbuffers/protobuf/issues/7505
* Update protobuf version
* Added a changelog entry about the Java fix. (#7516 )
5 years ago
Joshua Haberman
e90b71cdee
Update protobuf version
5 years ago
listonjesse
2ae7cf0e03
Auxillary -> Auxiliary
5 years ago
Joshua Haberman
6ed738305b
Sync from Piper @311396324
...
PROTOBUF_SYNC_PIPER
5 years ago
Joshua Haberman
f597a24627
Update protobuf version
5 years ago
Jon Skeet
3c3646fa78
Implement HasPresence for C#
...
FieldDescriptor.HasPresence returns true if both ClearValue and HasValue (on the accessor) can be expected to work. Some fields have a working ClearValue, but no HasValue; HasPresence returns false for those fields.
Generally:
- Extension fields have presence if and only if they're singular
- Repeated fields do not support presence
- Map fields do not support presence
- Message fields support presence
- Oneof fields support presence (this includes synthetic oneof fields, so that covers proto3 optional singular fields)
- Proto2 singular primitive fields support presence
- Proto3 singular primitive fields do not support presence (unless they're in a oneof, covered above)
5 years ago
Jan Tattermusch
fc5ded36bc
Merge pull request #7434 from jtattermusch/csharp_expose_options
...
C#: Get rid of broken GetOption API and expose the "GetOptions()" method on descriptors instead
5 years ago
Jon Skeet
807ea2f352
Fix to C# support library code
...
(This was the only use of a HasXyz property for a message type.)
5 years ago
Jon Skeet
13df985bff
Regenerate C# code based on the previous commit
...
(This removes the Has/Clear members for message types in proto2.)
5 years ago
Joshua Haberman
6b5fb807c0
Sync from Piper @310858019
...
PROTOBUF_SYNC_PIPER
5 years ago
Joshua Haberman
2d80a70048
Sync from Piper @310457838
...
PROTOBUF_SYNC_PIPER
5 years ago
Jon Skeet
ed5c874de3
Fix to C# support library code
...
(This was the only use of a HasXyz property for a message type.)
5 years ago
Jon Skeet
9926c9504b
Regenerate C# code based on the previous commit
...
(This removes the Has/Clear members for message types in proto2.)
5 years ago
Joshua Haberman
a9f11d7d64
Updated version to 3.12.0-rc1. ( #7449 )
5 years ago
Joshua Haberman
32e5deb1ac
Sync from Piper @308829107
...
PROTOBUF_SYNC_PIPER
5 years ago
Jon Skeet
97737072f9
Add reflection support for proto3 optional fields
...
This is more involved than might be expected because the synthetic oneofs don't generate the properties we would usually expect to see.
5 years ago
Jon Skeet
bad9d753ae
Add unit tests for proto3 optional fields
...
(This isn't as exhaustive as it might be, but the behavior is basically the same as proto2 optional fields.)
5 years ago
Jon Skeet
b0649a088a
Regenerate C# code with the new generator, adding unittest_proto3_optional.proto
...
The changes in the existing proto2 code are solely around presence bits. The new generator allocated presence bits more efficiently. (Previously bits were sometimes allocated but never used.)
5 years ago