Joshua Haberman
032400a03e
Fixed data corruption when total hasbits are a power of two.
3 years ago
Bernardo Bruning
4a3a7d9777
Introduce tests to encode and decode json
3 years ago
Joshua Haberman
dbec5d70cd
Fixed UBSAN error: NULL + 0.
3 years ago
Joshua Haberman
fb3b783353
WIP.
3 years ago
Bernardo Bruning
6475a96505
Ensures that the seconds are always positive
3 years ago
Bernardo Bruning
698ac476de
Introduces safe mod to not produce invalid mod and fix precision of days
3 years ago
Joshua Haberman
5dfbc684dd
WIP.
3 years ago
Joshua Haberman
bc7b5dcadf
Ported protobuf's dtoa() function for text format and JSON.
3 years ago
Joshua Haberman
606308c639
Added back missing underscore.
3 years ago
Joshua Haberman
75b6291e40
Renamed upb_FieldType_* -> kUpb_FieldType_*
3 years ago
Joshua Haberman
392531c14f
Fixed test by implementing FindMethodByName().
3 years ago
Joshua Haberman
a8d49d1245
Fixed ASCII art.
3 years ago
Joshua Haberman
fcf1db32b1
Fixed a few extraneous wrappings.
3 years ago
Joshua Haberman
cd214fe73d
upb_TextEncode.
3 years ago
Joshua Haberman
0c541f3305
Single encode.
3 years ago
Joshua Haberman
72af9dc0cc
Switch to a single upb_Decode.
3 years ago
Joshua Haberman
499c2cc8b1
upb_extreg, upb_msg
3 years ago
Joshua Haberman
1c955f37ce
Mass API rename and clang-reformat ( #485 )
...
* Wave 1: upb_fielddef.
* upb_fielddef itself.
* upb_oneofdef.
* upb_msgdef.
* ExtensionRange.
* upb_enumdef
* upb_enumvaldef
* upb_filedef
* upb_methoddef
* upb_servicedef
* upb_symtab
* upb_defpool_init
* upb_wellknown and upb_syntax_t
* Some constants.
* upb_status
* upb_strview
* upb_arena
* upb.h constants
* reflection
* encode
* JSON decode.
* json encode.
* msg_internal.
* Formatted with clang-format.
* Some naming fixups and comment reformatting.
* More refinements.
* A few more stragglers.
* Fixed PyObject_HEAD with semicolon. Removed TODO entries.
3 years ago
Joshua Haberman
8c256cc677
Addressed PR comments.
3 years ago
Joshua Haberman
62702b6cb1
Matched text format for maps.
3 years ago
Joshua Haberman
00c106f551
Addressed PR comments.
3 years ago
Joshua Haberman
6c2eeb1f41
Added C escaping in def_to_proto.
3 years ago
Joshua Haberman
7a24340a26
Fixed some more tests.
3 years ago
Joshua Haberman
fc725be5bc
Implemented proper unescaping of bytes defaults.
3 years ago
Joshua Haberman
e5d8d28b0f
Addressed PR comments.
3 years ago
Fabian Meumertzheim
5ea5b05530
Build tools in the exec configuration
...
Bazel has deprecated the host configuration and replaced it with the
exec configuration, which has proper support for transitions and remote
build execution.
3 years ago
Joshua Haberman
de2d7e345b
Addressed PR comments.
3 years ago
Joshua Haberman
5b3447ebd3
Addressed PR comments.
3 years ago
Joshua Haberman
1437245d41
Fixed or accounted for nearly all errors in message_test.
3 years ago
Joshua Haberman
627c44be1f
Initial commit of ExtensionDict.
3 years ago
Joshua Haberman
1c46e72eee
Addressed PR comments.
3 years ago
Joshua Haberman
bf74b3e7fd
Added map support.
3 years ago
Joshua Haberman
e4c88ad35a
Addressed PR comments.
3 years ago
Joshua Haberman
b0f81596be
All tests passing!
3 years ago
Joshua Haberman
aee30144cc
Fixed a couple bugs.
3 years ago
Joshua Haberman
54b605026d
Fixed a bug in ListFields().
3 years ago
Joshua Haberman
80776e363d
Changed the style of a few range checks.
3 years ago
Joshua Haberman
c5a69b79aa
Updated protobuf version.
...
This also required fixing a bug in the fast parser.
3 years ago
Joshua Haberman
f85cf27ea4
Fixes to delete algorithm.
3 years ago
Joshua Haberman
d067bd3f41
Addressed PR comments.
3 years ago
Joshua Haberman
2d4ffbf1c4
Addressed PR comments.
3 years ago
Joshua Haberman
455426ec70
Added repeated fields.
3 years ago
Joshua Haberman
2df18f0a3e
Addressed PR comments.
3 years ago
Joshua Haberman
39365f16a7
Addressed PR comments.
3 years ago
Joshua Haberman
a0374b3b08
Added required field checking into the encoder.
3 years ago
Joshua Haberman
b75f7cff17
Addressed PR comments.
3 years ago
Joshua Haberman
fd9d19d665
Properly compare Python unknown fields.
3 years ago
Joshua Haberman
9bff7b82d1
Unknown field comparison is passing tests.
3 years ago
Joshua Haberman
732a21bb59
Added unknown field comparison to compare.h/compare.c.
3 years ago
Stan Hu
50be590581
Use pre-defined standard integer max/mins in INTCHECK
...
This makes the code easier to read.
3 years ago