Paul Yang
6c4469e189
Fix json encoding/decoding for duration. ( #118 )
...
* Fix json encoding/decoding for duration.
* Use lld for int64_t
* Cast int64_t to long
6 years ago
Joshua Haberman
b7cad62b5f
Got CMake build working on macOS, and updated CMake build.
6 years ago
Joshua Haberman
62318cadce
Merge pull request #119 from rohitsakala/master
...
Bugfix for bigendian platforms by casting size_t to unint32_t
6 years ago
Sakala Venkata Krishna Rohit
4473585734
Merge branch 'master' of https://github.com/rohitsakala/upb
6 years ago
Sakala Venkata Krishna Rohit
898f640e65
Bugfix on bigendianess by casting size_t to unint32_t
...
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.
6 years ago
Sakala Venkata Krishna Rohit
6522ae4fb3
Bugfix on bigendianess by casting size_t to unint32_t
...
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.
6 years ago
Paul Yang
38d674e86f
Fix json parsing for timestamp ( #115 )
...
* 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
6 years ago
Joshua Haberman
d1738d4dec
Merge pull request #117 from haberman/cmake
...
Moved upb_msg parts that depend on def to a separate msgfactory.{c,h}.
6 years ago
Josh Haberman
e94ac4f757
Moved upb_msg parts that depend on def to a separate msgfactory.{c,h}.
...
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.
6 years ago
gerben-s
0a95f73d0d
Merge pull request #116 from haberman/rmgooglepb
...
Removed a bunch of obsolete code.
6 years ago
Josh Haberman
6155ed8b49
Re-add amalgamation rules and remove google protobuf from Travis.
6 years ago
Josh Haberman
1a484d353b
Re-add upb/bindings/stdc++/string.h, which is still used in tests.
6 years ago
Josh Haberman
c0a50de923
Removed a bunch of obsolete code.
...
A lot of this code was experimental or temporarily
useful, but is no longer needed.
6 years ago
Joshua Haberman
e3eae33fb5
Merge pull request #114 from haberman/arenaonly
...
Enforced that upb_msg lives in an Arena only, and other simplifying.
6 years ago
Joshua Haberman
636b25be8d
Re-add msg handlers to the .c file also.
6 years ago
Joshua Haberman
7059be68ae
Re-add message handlers to upb/handlers.*.
...
These are still being used by the proto2 bindings.
6 years ago
Joshua Haberman
c8f6a27e6b
Enforced that upb_msg lives in an Arena only, and other simplifying.
...
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.
6 years ago
Joshua Haberman
b0a6602fc8
Merge pull request #113 from TeBoring/json-wrapper
...
Support json parsing for wrapper values
6 years ago
Bo Yang
a8d1a5933d
Use special eof char to mark end of parsing
6 years ago
Bo Yang
d4caefaade
Move logic away from ragel machine
6 years ago
Bo Yang
f1d7570f30
Remove unused code
6 years ago
Bo Yang
ac9d4468f5
Make value top level
6 years ago
Bo Yang
ae2f1cdb17
Mark unused variable
6 years ago
Bo Yang
cc27a5b576
Update ragel generated file
6 years ago
Bo Yang
9449cf68cc
Make top level wrapper value parsing work
6 years ago
Bo Yang
20f1b6df41
Fix json decoding for wrapper messages
6 years ago
Joshua Haberman
1db11440bd
Merge pull request #112 from TeBoring/json-unknown
...
Enable ignore unknown field in json parsing
7 years ago
Bo Yang
72e66e2b55
Enable ignore unknown field in json parsing
7 years ago
Joshua Haberman
fa99d854f6
Merge pull request #110 from TeBoring/upb-revert
...
Revert "Prepare upb_value for encoding/decoding map."
7 years ago
Bo Yang
1080117f2b
Revert "Prepare upb_value for encoding/decoding map."
...
This reverts commit f30dd0ff0c
.
7 years ago
Joshua Haberman
d73b12ed3c
Merge pull request #107 from lauraguevara97/patch-1
...
Update README.md
7 years ago
Laura
45a9dd20d8
Update README.md
...
fixed spelling mistake :)
7 years ago
Bo Yang
f30dd0ff0c
Prepare upb_value for encoding/decoding map.
7 years ago
Paul Yang
5029aa439c
Merge pull request #105 from TeBoring/php-change
...
Implement decoding repeated message field.
7 years ago
Bo Yang
86dec3021f
Implement decoding repeated message field.
7 years ago
Paul Yang
13f200bd77
Merge pull request #104 from TeBoring/php-change
...
Bytes type should return size of stringview
7 years ago
Bo Yang
0833cf29b3
Bytes type should return size of stringview
7 years ago
Paul Yang
298c252695
Merge pull request #103 from TeBoring/php-change
...
Fix problems of upb_encode_growbuffer
7 years ago
Bo Yang
e06cc3d7cc
e->limit is invalidated after growing.
7 years ago
Paul Yang
0693640da8
Merge pull request #101 from TeBoring/php-change
...
Fix parsing sub-message field.
7 years ago
Joshua Haberman
9dbe75a403
Merge pull request #102 from haberman/descriptor-in-core
...
Added google/protobuf/descriptor.upb.* to core.
7 years ago
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