- 21 Feb, 2019 1 commit
-
-
Xiang Dai authored
Signed-off-by:
Xiang Dai <764524258@qq.com>
-
- 14 Feb, 2019 1 commit
-
-
Sydney Acksman authored
-
- 11 Feb, 2019 1 commit
-
-
Sydney Acksman authored
* Modify how end tags are encounted in merge code (compiler) * Modify how end tags are encounted in merge code (generated) * Modify how end tags are encounted in merge code (library) * Regenerate generated code through generate_descriptor_proto.sh
-
- 14 Dec, 2018 2 commits
-
-
Hao Nguyen authored
-
Hao Nguyen authored
Replace update_version shell script with a python script, which is much better at handling XML rewrite. Update the PHP version too. As part of rewrite, some XML file format will change a little, but the semantics is still the same so it should be okay.
-
- 10 Dec, 2018 3 commits
-
-
Hao Nguyen authored
-
Hao Nguyen authored
Fix TimestampPartial operator == overload implementation: Cannot call == inside it, otherwise it would cause stack overflow
-
Hao Nguyen authored
-
- 13 Nov, 2018 1 commit
-
-
Jon Skeet authored
* Increase C# default recursion limit to 100 This matches the Java and C++ defaults. * Change compatibility tests to use execution-time default recursion limit This way the same tests should pass against all versions, even if the recursion limit changes. (The tests will be testing whether different messages work, admittedly - but that's probably fine.)
-
- 09 Nov, 2018 1 commit
-
-
Adam Cozzette authored
-
- 05 Nov, 2018 1 commit
-
-
Sydney Acksman authored
Add group support for proto2
-
- 08 Oct, 2018 1 commit
-
-
Benjamin Krämer authored
* Ported FieldMaskUtil from Java to C# * Merged FieldMaskUtil into FieldMaskPartial - Removed FieldMaskUtil - Moved FieldMaskTree to root - Updated tests * Improved tests - Removed internal method FieldMaskTree.GetFieldPaths - Proof FieldMask.Paths only contains expected values * Added FieldMaskTreeTest to Makefile * Added FieldMaskTree to Makefile
-
- 05 Oct, 2018 1 commit
-
-
Sydney Acksman authored
-
- 24 Sep, 2018 1 commit
-
-
Sydney Acksman authored
* Compiler changes * Generated code changes * Library changes * Compiler style changes * Generated style changes * Fix Windows build errors * Implement changes from review * Reintroduce proto2 check * Compiler changes (required handling review) * Generated code changes (required handling review) * Library changes (required handling review * Field presence rewrite (compiler changes) * Field presence rewrite (generated code changes) * Compiler comment * IFieldAccessor.HasValue library implementation * Remove Clear methods and default values from proto3 code (Compiler) * Remove Clear methods and default values from proto3 code (Generated) * Remove Clear methods and default values from proto3 code (Library) * Fix distcheck error * Rewrite default string values to use base64 and convert * Library changes (IMessage2) * Compiler changes (IMessage2) * Generated changes (IMessage2) * Rebased and regenerated * Compiler changes (initialized extension) * Generated changes (initialized extension) * Library changes (initialized extension) * Refactor MessageExtensions.IsRequired * Move string default value creator and bytes default value creator back to seperate methods * Dead code cleanup * Fixed segmentation fault Removed unused header method declarations
-
- 22 Sep, 2018 2 commits
-
-
Jon Skeet authored
-
Jon Skeet authored
This is primarily for access to comments, which would be expected to be available in a protoc plugin. The implementation has two fiddly aspects: - We use a Lazy<T> to avoid building the map before cross-linking. An alternative would be to crosslink at the end of the constructor, and remove the calls to CrossLink elsewhere. This would be generally better IMO, but deviate from the Java code. - The casts to IReadOnlyList<DescriptorBase> are unfortunate. They'll always work, because these lists are always ReadOnlyCollection<T> for a descriptor type... but we can't use IList<DescriptorBase> as that's not covariant, and it's annoyingly fiddly to change the field to be of type ReadOnlyCollection<T>.
-
- 19 Sep, 2018 1 commit
-
-
Michael Shields authored
-
- 10 Sep, 2018 1 commit
-
-
Jon Skeet authored
This performs more testing for field descriptors built from byte strings too, but that's mostly incidental. The chief intent is to check that cross-linking occurs.
-
- 04 Sep, 2018 1 commit
-
-
Josh Haberman authored
-
- 22 Aug, 2018 1 commit
-
-
Feng Xiao authored
-
- 20 Aug, 2018 1 commit
-
-
Jon Skeet authored
Related to #658 and #5007.
-
- 09 Aug, 2018 1 commit
-
-
Feng Xiao authored
-
- 27 Jul, 2018 1 commit
-
-
Adam Cozzette authored
-
- 09 Jul, 2018 1 commit
-
-
Warren Falk authored
-
- 25 Jun, 2018 1 commit
-
-
Sebastian Schuberth authored
This potentially avoids compiler warnings.
-
- 29 May, 2018 1 commit
-
-
Adam Cozzette authored
-
- 14 May, 2018 2 commits
-
-
Jisi Liu authored
-
Cameron Taggart authored
-
- 11 May, 2018 1 commit
-
-
Paul Yang authored
-
- 27 Apr, 2018 1 commit
-
-
Jon Skeet authored
With this fix, Unity using IL2CPP should work with one of two approaches: - Call `FileDescriptor.ForceReflectionInitialization<T>` for every enum present in generated code (including oneof case enums) - Ensure that IL2CPP uses the same code for int and any int-based enums The former approach is likely to be simpler, unless IL2CPP changes its default behavior. We *could* potentially generate the code automatically, but that makes me slightly uncomfortable in terms of generating code that's only relevant in one specific scenario. It would be reasonably easy to write a tool (separate from protoc) to generate the code required for any specific set of assemblies, so that Unity users can include it in their application. We can always decide to change to generate it automatically later.
-
- 19 Apr, 2018 1 commit
-
-
Sydney Acksman authored
* Edited MessageFieldGenerator to clone to backing field instead of property * Generated C# proto code
-
- 06 Apr, 2018 1 commit
-
-
Jon Skeet authored
The SampleEnumMethod method was previously only called via reflection, so the Unity linker thought it could be removed. Ditto the parameterless constructor in ReflectionHelper. This PR should avoid that issue, reducing the work needed by customers to use Google.Protobuf from Unity.
-
- 02 Apr, 2018 1 commit
-
-
Paul Yang authored
* Fix setup.py for windows build. * Bump version number to 3.5.2 * Cat the test-suite.log on errors for presubits
-
- 27 Mar, 2018 4 commits
-
-
Jon Skeet authored
-
Jon Skeet authored
For oneofs, to get the case, we need to call the property that returns the enum value. We really want it as an int, and modern runtimes allow us to create a delegate which returns an int from the method. (I suspect that the MS runtime has always allowed that.) Old versions of Mono (e.g. used by Unity3d) don't allow that, so we have to convert the enum value to an int via boxing. It's ugly, but it should work.
-
Jon Skeet authored
-
Jon Skeet authored
This should work on Unity, Mono and .NET 3.5 as far as I'm aware. It won't work on platforms where reflection itself is prohibited, but that's a non-starter basically.
-
- 14 Mar, 2018 1 commit
-
-
Adam Cozzette authored
-
- 06 Mar, 2018 1 commit
-
-
Bo Yang authored
-
- 01 Mar, 2018 1 commit
-
-
Jon Skeet authored
-