summaryrefslogtreecommitdiff
path: root/upb/decode.c
AgeCommit message (Collapse)Author
2019-04-17upb_proto_library() aspect is working, even for external repos.Josh Haberman
2019-03-27Moved macros from upb.h to port_def.inc to avoid leaking them to users. (#160)Joshua Haberman
* Use port_def.inc to prevent macros from leaking to users. * Added helpful comments to port_def.inc/port_undef.inc.
2019-03-27Removed reflection and other extraneous things from the core library. (#158)Joshua Haberman
* Removed reflection and other extraneous things from the core library. * Added missing files and ran buildifier. * New CMakeLists.txt. * Made table its own cc_library() for internal usage.
2019-03-26Merge branch 'master' into apitweaksJosh Haberman
2019-02-01A few small API tweaks.Josh Haberman
- Foo_parsenew() -> Foo_parse(). - parse function takes plain (const char*, size_t) instead of upb_strview. The latter is mainly useful for strings inside message objects.
2019-01-15Merge branch 'arrayapi' into defcleanupJoshua Haberman
2019-01-03Renamed upb_stringview -> upb_strview for C terseness.Josh Haberman
2018-09-11WIP.Josh Haberman
2018-09-06Added support for unknown fields to upb_msg.Josh Haberman
After this CL, upb passes all existing proto3 conformance tests. However the conformance suite is missing a lot of cases and should be fleshed out.
2018-09-06Fixed some c89 errors.Josh Haberman
2018-09-06Removed default instance and oneof array from tables.Josh Haberman
2018-09-06Removed unused parameter.Joshua Haberman
2018-09-06A few more compile fixes.Joshua Haberman
2018-09-06Changed C API to use inline functions and computed offsets.Joshua Haberman
2018-09-03Changed C API to only define structs, a table, and a few minimal inline ↵Joshua Haberman
functions.
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-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-03-08Implement decoding repeated message field.Bo Yang
2018-03-07Fix parsing sub-message field.Bo Yang
Buffer start place needs to be adjusted before parsing sub-message.
2018-03-07Fix oneof encoding/decodingBo Yang
2018-03-07For encoding upb needs descriptor type instead of type.Bo Yang
2017-09-25Initialize tag to make compiler happy.Bo Yang
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
2017-07-18Fixes for oneof conformance tests.Joshua Haberman
2017-07-17New encode/decode: most (171 / 192) conformance tests pass.Joshua Haberman
2017-07-11WIP.Joshua Haberman
2017-07-10Lots of encoder/decoder work (backwards encoder).Joshua Haberman
2017-07-08A good start on upb_encode and upb_decode.Josh Haberman
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback