Josh Haberman
cea737028f
Added google/protobuf/descriptor.upb.* to core.
...
This is in preparation for making upb_def capable
of parsing binary descriptors directly.
We leave upb/descriptor/descriptor.upbdefs.* in
place for now, because upb/descriptor/reader.*
still depends on it.
Also removed a bit of cruft from the codegen.
7 years ago
Bo Yang
93aaf99347
Fix parsing sub-message field.
...
Buffer start place needs to be adjusted before parsing sub-message.
7 years ago
Paul Yang
681cf4279c
Merge pull request #100 from TeBoring/php-change
...
Fix oneof encoding/decoding
7 years ago
Bo Yang
dfe7d3a374
swap condition branches to remove negation
7 years ago
Bo Yang
ba93474aa2
Fix oneof encoding/decoding
7 years ago
Paul Yang
6edcf6a82a
Merge pull request #99 from TeBoring/php-change
...
In case of circular dependency, layout has to be inserted first.
7 years ago
Bo Yang
bc7f1eaca0
In case of circular dependency, layout has to be inserted first.
7 years ago
Paul Yang
69719e0a06
Merge pull request #98 from TeBoring/php-change
...
Field missing submsg, hasbit and default value information.
7 years ago
Bo Yang
719f644232
Field missing submsg and hasbit information.
7 years ago
Paul Yang
10ae4951fb
Merge pull request #97 from TeBoring/php-change
...
Conversion from uint64 to uint32 didn't consider sign bit.
7 years ago
Bo Yang
8c6d0e5545
Conversion from uint64 to uint32 didn't consider sign bit.
7 years ago
Joshua Haberman
a66159a384
Merge pull request #96 from TeBoring/php-change
...
For encoding upb needs descriptor type instead of type.
7 years ago
Bo Yang
cafebf6bee
For encoding upb needs descriptor type instead of type.
7 years ago
Joshua Haberman
bcb62b7fbf
Merge pull request #92 from TeBoring/unknown
...
Add new "unknown field" handler.
7 years ago
Bo Yang
0a9681874e
Modify TODO
7 years ago
Bo Yang
10c6f18d11
Turn off warining on undef private/protected
7 years ago
Bo Yang
1e1c54f772
Change parameter type from enum opcode to int.
...
If the compiler elects to represent enum E as a char rather than an int
(per 6.7.2.2p4), the call to va_start() will have undefined behavior.
7 years ago
Bo Yang
ee7b049d19
Initialize tag to make compiler happy.
7 years ago
Joshua Haberman
0776f64830
Fixed JIT for unknown fields. ( #1 )
7 years ago
Bo Yang
d9eca86091
Modify selector base in tests/json/test.upbdefs.cc
7 years ago
Bo Yang
dd77460c65
Do not expose encode_unknown
7 years ago
Bo Yang
69dee545ec
Remove upb_pb_encoder_encode_unknown
7 years ago
Bo Yang
6a6e192375
Remove unused declaration.
7 years ago
Bo Yang
6b4e07cc18
Remove upb_addunknown_handlerfunc
7 years ago
Bo Yang
5aa27d91c6
Use upb_sink_putunknown for reserve unknown
7 years ago
Bo Yang
dc9d15084f
Remove upb_addunknown_handlerfunc and upb_handlers_setaddunknown
7 years ago
Bo Yang
0b7904e18c
Reserve unknown fields in upb
...
1. For decoding, an unknownfields will be lazily created on message,
which contains bytes of unknown fields.
2. For encoding, if the unknownfields is present on message, all bytes
contained in it will be serialized.
7 years ago
Joshua Haberman
ae30b4a816
Merge pull request #90 from haberman/gencode3
...
Added new encoder/decoder that operates on upb_msglayout.
7 years ago
Joshua Haberman
72c333eb03
Fixed amalgamated build.
7 years ago
Joshua Haberman
058a17f6a6
Fix amalgamated build.
7 years ago
Joshua Haberman
98f513fb8f
Fixed 32-bit build and added generated files.
7 years ago
Joshua Haberman
6b87674221
Address review comments and fix compile warnings.
7 years ago
Joshua Haberman
806ffc1d20
Responded to PR comments.
7 years ago
Joshua Haberman
15308afff2
Fixes for oneof conformance tests.
7 years ago
Joshua Haberman
b697882fb2
Fixed varint length when buffer is reallocated.
7 years ago
Joshua Haberman
be9094d91a
New encode/decode: most (171 / 192) conformance tests pass.
7 years ago
Joshua Haberman
d5167fff74
Merge pull request #88 from google/gencode2
...
First version of a real C codegen for upb.
7 years ago
Joshua Haberman
4da95f6213
Merge branch 'gencode2' into gencode3
7 years ago
Joshua Haberman
6eb489a30a
Merge branch 'master' into gencode2
7 years ago
Joshua Haberman
edad06a9fa
WIP.
7 years ago
Joshua Haberman
0af928564e
Merge pull request #89 from google/stringview
...
Added upb_stringview, the string representation for upb_msg.
7 years ago
Joshua Haberman
277c4d584f
Merge branch 'gencode2' into gencode3
7 years ago
Joshua Haberman
1278ff8994
Responded to PR comments.
7 years ago
Joshua Haberman
2e01793ded
Merge branch 'stringview' into gencode3
7 years ago
Joshua Haberman
c0a660f474
Added upb_stringview, the string representation for upb_msg.
7 years ago
Joshua Haberman
f38e4c7cf4
Merge pull request #87 from google/gencode
...
Start migrating upb_msglayout to be suitable for generated code.
7 years ago
Joshua Haberman
051df05fb2
Merge branch 'gencode2' into gencode3
7 years ago
Joshua Haberman
717a030083
Merge branch 'gencode' into gencode2
7 years ago
Joshua Haberman
3e8acc3f4e
Removed incorrect assert and added comments.
7 years ago
Joshua Haberman
af43ea72b5
Removed incorrect assertion.
...
Internal members aren't initialized by default_msg.
7 years ago