summaryrefslogtreecommitdiff
path: root/upb
AgeCommit message (Collapse)Author
2018-09-06Fix json parsing for Struct, ListValue and Value.Bo Yang
2018-08-29Fix json encoding/decoding for duration. (#118)Paul Yang
* Fix json encoding/decoding for duration. * Use lld for int64_t * Cast int64_t to long
2018-08-27Bugfix on bigendianess by casting size_t to unint32_tSakala Venkata Krishna Rohit
The reason for typecasting size_t to unint32_t is that size_t is 8 bytes and uint32_t is only 4 bytes. If not typecasted Memcpy fails to copy the *correct* four bytes in big endian platforms.
2018-08-24Fix json parsing for timestamp (#115)Paul Yang
* Fix json parsing for timestamp * Fix json encoding for timestamp * Implement timestamp_machine to parse timestamp * Remove comparision for size_t and 0 * Increase defined printer size * Increase size * Increase parser size * Mark json_en_timestamp_machine unused
2018-08-22Moved upb_msg parts that depend on def to a separate msgfactory.{c,h}.Josh Haberman
Also got rid of the premature "v1" business that was attempting to create a binary compatibility story. Also added an in-progress CMakeLists.txt file.
2018-08-21Re-add upb/bindings/stdc++/string.h, which is still used in tests.Josh Haberman
2018-08-21Removed a bunch of obsolete code.Josh Haberman
A lot of this code was experimental or temporarily useful, but is no longer needed.
2018-08-12Re-add msg handlers to the .c file also.Joshua Haberman
2018-08-12Re-add message handlers to upb/handlers.*.Joshua Haberman
These are still being used by the proto2 bindings.
2018-08-12Enforced that upb_msg lives in an Arena only, and other simplifying.Joshua Haberman
upb_msg was trying to be general enough that it could either live in an arena or be allocated with malloc()/free(). This was too much complexity for too little benefit. We should commit to just saying that upb_msg is arena-only. I also ripped out the code to glue upb_msg to the existing handlers-based encoder/decoder. upb_msg has its own, small, simple encoder/decoder. I'm trying to whittle down upb_msg to a small and simple core. I updated the Lua extension for these changes. Lua needs some more work to properly create arenas per message. For now I just created a single global arena.
2018-08-09Use special eof char to mark end of parsingBo Yang
2018-08-09Move logic away from ragel machineBo Yang
2018-08-05Remove unused codeBo Yang
2018-08-05Make value top levelBo Yang
2018-08-01Mark unused variableBo Yang
2018-07-31Update ragel generated fileBo Yang
2018-07-30Make top level wrapper value parsing workBo Yang
2018-07-27Fix json decoding for wrapper messagesBo Yang
2018-06-27Enable ignore unknown field in json parsingBo Yang
2018-06-14Revert "Prepare upb_value for encoding/decoding map."Bo Yang
This reverts commit f30dd0ff0cead9bb1f8f3b1b295392d75705486b.
2018-03-11Prepare upb_value for encoding/decoding map.Bo Yang
2018-03-08Implement decoding repeated message field.Bo Yang
2018-03-08Bytes type should return size of stringviewBo Yang
2018-03-08e->limit is invalidated after growing.Bo Yang
2018-03-07Merge pull request #101 from TeBoring/php-changePaul Yang
Fix parsing sub-message field.
2018-03-07Merge pull request #102 from haberman/descriptor-in-coreJoshua Haberman
Added google/protobuf/descriptor.upb.* to core.
2018-03-07Added google/protobuf/descriptor.upb.* to core.Josh Haberman
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.
2018-03-07Fix parsing sub-message field.Bo Yang
Buffer start place needs to be adjusted before parsing sub-message.
2018-03-07swap condition branches to remove negationBo Yang
2018-03-07Fix oneof encoding/decodingBo Yang
2018-03-07In case of circular dependency, layout has to be inserted first.Bo Yang
2018-03-07Field missing submsg and hasbit information.Bo Yang
2018-03-07Conversion from uint64 to uint32 didn't consider sign bit.Bo Yang
2018-03-07For encoding upb needs descriptor type instead of type.Bo Yang
2017-09-25Modify TODOBo Yang
2017-09-25Change parameter type from enum opcode to int.Bo Yang
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.
2017-09-25Initialize tag to make compiler happy.Bo Yang
2017-09-25Fixed JIT for unknown fields. (#1)Joshua Haberman
2017-09-20Do not expose encode_unknownBo Yang
2017-09-19Remove upb_pb_encoder_encode_unknownBo Yang
2017-09-19Remove unused declaration.Bo Yang
2017-09-19Remove upb_addunknown_handlerfuncBo Yang
2017-09-19Use upb_sink_putunknown for reserve unknownBo Yang
2017-09-19Remove upb_addunknown_handlerfunc and upb_handlers_setaddunknownBo Yang
2017-09-19Reserve unknown fields in upbBo Yang
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.
2017-07-19Fixed amalgamated build.Joshua Haberman
2017-07-19Fix amalgamated build.Joshua Haberman
2017-07-19Fixed 32-bit build and added generated files.Joshua Haberman
2017-07-19Address review comments and fix compile warnings.Joshua Haberman
2017-07-18Responded to PR comments.Joshua Haberman
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback