Sydney Acksman
a85c4a3299
Move generated test code to a seperate lib
2019-11-08 07:23:50 -06:00
Sydney Acksman
c04a02774d
Change _Extensions property to normal body rather than expression
2019-11-07 15:30:12 -06:00
Jan Tattermusch
0150f7f532
Merge pull request #6843 from chrisdunelm/csharp_wrapper_primitive_opts
...
C#: Optimize parsing of some primitive and wrapper types
2019-11-05 18:04:53 +01:00
Chris Bacon
d22eaded5c
Remove unneeded exception methods
2019-11-05 11:39:31 +00:00
Chris Bacon
2ac8946ee3
Allow extra fields in wrapper messages, more tests.
2019-11-04 21:35:38 +00:00
Chris Bacon
e305e56cad
C#: Optimize parsing of some primitive and wrapper types
2019-11-04 20:26:27 +00:00
Sydney Acksman
e119a432a8
Use 3 parameter Encoding.FromBytes for default string values
2019-11-04 12:31:28 -06:00
Jan Tattermusch
b8b1b6793f
add regenerate C# protos
2019-11-04 18:21:22 +01:00
Jan Tattermusch
85a87ed3cb
add benchmark for wrapper type parsing
2019-11-04 18:21:22 +01:00
Jan Tattermusch
c81bad1b04
add wrapper_benchmark_messages.proto
2019-11-04 18:21:22 +01:00
Jan Tattermusch
9417a310d3
Merge pull request #6824 from jskeet/fix-extensions
...
Fix reflection access when using old generated code
2019-11-04 14:12:06 +01:00
Jon Skeet
7282f29ced
Avoid NullReferenceException when accessing CustomOptions
...
Even though the property is deprecated, it still shouldn't throw.
2019-10-30 11:59:09 +00:00
Jon Skeet
9b5fdb0938
Ignore incomplete extensions when building a FileDescriptor
...
FileDescriptor construction uses an extension registry including extensions from imports. If these were created using an older version of protoc, the FieldDescriptor.Extension property may be null; we ignore such extensions rather than failing.
2019-10-30 09:47:45 +00:00
Jon Skeet
7581fd5ea6
Tests for issue 6822
...
(The implementation to fix this is in the following commit.)
2019-10-30 09:46:24 +00:00
Jon Skeet
e613ba6980
Add braces around single-statement if/foreach
2019-10-30 09:45:00 +00:00
Jan Tattermusch
c08b7512cf
Merge pull request #6759 from ObsidianMinor/csharp/extension-length-checks
...
Add length checks to ExtensionCollection
2019-10-22 08:24:43 +02:00
Jan Tattermusch
2f7f670134
Merge pull request #6530 from prat0088/csharp-ensuresize
...
c# feature(RepeatedField): Capacity property to resize the internal array
2019-10-18 17:35:12 +02:00
Sydney Acksman
f50bc62feb
Add length checks to ExtensionCollection
2019-10-11 20:23:07 -05:00
Rafi Kamal
2ed41359fe
Update version to 3.11.0-RC0
2019-10-03 14:24:27 -07:00
Rafi Kamal
97c7c3fc97
Merge 3.10.x to master
2019-10-03 14:03:38 -07:00
Sydney Acksman
c54ff8d0dc
Fix many proto2 C# doc comments
2019-09-19 04:39:40 -05:00
Jie Luo
2a4657971d
Update to 3.10.0-rc0 ( #6660 )
...
* Cherry pick changes on update_version.py #6643
* Update version to 3.10.0-rc-0
* Do not add rc0 to php packages.xml
2019-09-18 13:30:03 -07:00
Rafi Kamal
5021cd3419
Update protobuf version
2019-09-12 13:50:24 -07:00
Vperus
8e6141a63d
[csharp] Fix typo
2019-09-11 10:36:00 -07:00
Rafi Kamal
56bf637221
Update protobuf version
2019-09-05 09:47:52 -07:00
Jan Tattermusch
e2f5da65ee
C#: add System.Memory dependency for net45 too ( #6317 )
...
* introduce GOOGLE_PROTOBUF_SUPPORT_SYSTEM_MEMORY
* allow building net45 target on unix systems too
* add Span<> support on net45 as well
2019-09-03 10:17:21 -07:00
Sydney Acksman
4d5ae5b4a4
Use proto2 and proto3 in unknown field tests
2019-08-29 18:07:02 -05:00
Sydney Acksman
bdc6cd1d0b
Expose Extension field in FieldDescriptor
2019-08-23 17:29:59 -05:00
Sydney Acksman
0436b8db85
GetOrRegisterExtension -> GetOrInitializeExtension
...
Add comment explaining IExtensionMessage instability
2019-08-23 17:29:59 -05:00
Sydney Acksman
c5fa0e08c7
Fix comment on IExtendableMessage.GetOrRegisterExtension
2019-08-23 17:29:59 -05:00
Sydney Acksman
79cf8a8bae
Fix readability in FieldCodec.ForMessage/Group factories
2019-08-23 17:29:59 -05:00
Sydney Acksman
3237ad39f8
Rename ExtensionRegistry.Add(IEnumerable<Extension>) overload to AddRange
2019-08-23 17:29:58 -05:00
Sydney Acksman
930db675ca
Revert changes for FieldPresenceAccessor
2019-08-23 17:29:58 -05:00
Sydney Acksman
29141f482c
Fix default extension values being unused in FieldCodec
2019-08-23 17:29:58 -05:00
Sydney Acksman
47f2017cf3
Review changes
...
* Add Syntax enum and make file syntax checks check the enum
* Made IsPacked a normal get method without ternary op
* Moved IFieldAccessor.HasValue to IFieldPresenceAccessor
* Change naming of GetIsExtensionsInitialized
* Fixed stray text in summary text
2019-08-23 17:29:58 -05:00
Sydney Acksman
29d5186867
Regenerate testprotos.pb
2019-08-23 17:29:58 -05:00
Sydney Acksman
6b90ac13e0
Reorganize some tests
2019-08-23 17:16:37 -05:00
Sydney Acksman
bf4f6c5431
Make extension reflection helper use GetOrRegisterExtension
2019-08-23 17:16:37 -05:00
Sydney Acksman
9163a6f1ad
Add tests for extension accessor
2019-08-23 17:16:37 -05:00
Sydney Acksman
0c80570a8b
Add ExtensionSet tests and add checks that non-message extension fields don't fail initialization checks
2019-08-23 17:16:37 -05:00
Sydney Acksman
f4cfd2def3
Remove dead HasValue code for ExtensionValue and add null-checks to ExtensionSet.Set
2019-08-23 17:16:37 -05:00
Sydney Acksman
8dc69ede45
Remove unnecessary check in GetIsExtensionsInitialized
2019-08-23 17:16:37 -05:00
Sydney Acksman
b78330b21d
Fix RepeatedExtensionValue.IsInitialized
2019-08-23 17:16:37 -05:00
Sydney Acksman
ebf0bfaed8
Add private "_Extensions" property to speed up IsInitialized checks
2019-08-23 17:16:37 -05:00
Sydney Acksman
134242bc46
Change input message to UnknownFieldSet tests to proto2 test message to test groups.
2019-08-23 17:16:37 -05:00
Sydney Acksman
cd65535423
Added group roundtrip tests and fixed any issues discovered
2019-08-23 17:16:37 -05:00
Sydney Acksman
011427c9d8
Fix issues from interactive rebase and regenerate code
2019-08-23 17:16:37 -05:00
Sydney Acksman
5b2f2c5292
file descriptors and the syntax field are really weird with proto2
2019-08-23 17:16:37 -05:00
Sydney Acksman
8e917d1688
Added FieldDescriptor.IsExtension and sealed ExtensionCollection
2019-08-23 17:16:37 -05:00
Sydney Acksman
8b7fb7d0f4
Add tests for field presence and default values
...
Adjust APIs for extensions to properly return default values for extensions
Fix issues with IsInitialized and proto2 field reflection
2019-08-23 17:16:36 -05:00