Xun Liu
df0991b7de
serialize fully qualified struct & enum name in schema binary
2016-09-15 10:42:23 -07:00
Ben Hamilton
94d5643f97
Allow GenerateText() to indicate failure to encode flatbuffer to JSON (i.e., non-UTF-8 string data)
2016-08-18 10:23:26 -07:00
Wouter van Oortmerssen
205ddb175f
Added union namespacing test case.
...
Change-Id: I9a4f90889c311c454a9c19e78c7db3c79800b44e
Tested: on Linux.
2016-08-10 11:52:09 -07:00
Ben Hamilton
f6416d8471
Validate UTF-8 by default when parsing IDL. Support Unicode values > U+FFFF in parse
2016-08-01 14:05:24 -07:00
Wouter van Oortmerssen
05b00c50ad
Added way to test two schemas for safe evolution.
...
Change-Id: I1dfc867e6df5932ab61dad431eb3cb02f15d04df
Tested: on Linux.
Bug: 30202327
2016-07-20 17:56:59 -07:00
Wouter van Oortmerssen
77e9122681
Merge "This is a minimal amount of #ifdef's to make stlport work." into ub-games-master
2016-07-21 00:55:05 +00:00
Wouter van Oortmerssen
e067040375
Fixed unused parameter warning.
...
Change-Id: I7a2576c6f366b89ef3e1f83941f90294ca7a07fd
2016-07-20 17:52:41 -07:00
Wouter van Oortmerssen
91f5cf357c
Merge branch 'master' of https://github.com/google/flatbuffers into grpc2
2016-07-20 17:41:36 -07:00
Wouter van Oortmerssen
7c7c571bbe
This is a minimal amount of #ifdef's to make stlport work.
...
Minimal, in the sense that this will only allow flatbuffers.h +
generated code to work. Everything else (tests, parsing, reflection
etc.) may still not compile with stlport.
Functionality has been reduced, some utility functions are not
available.
Tested: on Linux (no stlport), Android (stlport).
Change-Id: I3f8b6a88258c07d78964dd455fb9f99f65266301
2016-07-20 17:29:47 -07:00
Wouter van Oortmerssen
3101e327c0
Added optional object based API for C++.
...
Change-Id: If927f3ea3fb3723088fa287f24bdd1ad43c8d1d1
Tested: on Linux.
2016-07-20 14:58:57 -07:00
Wouter van Oortmerssen
ce3e7fbd72
VS2010 fixes
2016-07-20 10:41:26 -07:00
Wouter van Oortmerssen
b22db6e8eb
Merge pull request #3905 from bog-dan-ro/master
...
Verifier computes the buffersize, useful when streaming multiple flatbuffers
2016-07-14 10:55:22 -07:00
BogDan Vatra
4b53762cf2
Verifier computes the buffersize, useful for streaming
...
Close #3898
2016-07-14 20:15:44 +03:00
Raman
0d56276102
Update test.cpp
2016-07-14 18:51:23 +02:00
Raman
98c7a0c169
Update test.cpp
2016-07-14 10:30:06 +02:00
Raman
676f0712fd
Update test.cpp
2016-07-14 10:01:08 +02:00
Raman
db99c1aa64
Update test.cpp
2016-07-12 19:55:35 +02:00
Raman
22697722d9
Update test.cpp
2016-07-09 12:51:06 +02:00
Raman
5043764247
Update test.cpp
2016-07-04 21:55:44 +02:00
Wouter van Oortmerssen
9e6c5f9f2c
JSON Parser allows union type fields to come after unions.
...
This is useful because many JSON generators will sort the fields,
cause X_type to follow X.
Change-Id: I00ef3ac05418224fc05aee93e6b3b3597e73ffe3
Tested: on Linux.
Bug: 29221752
2016-06-20 16:30:14 -07:00
Wouter van Oortmerssen
d3ac0bc149
Added conversion operations that can be used inline in JSON.
...
e.g.: { myfield: cos(rad(180)) } is equivalent to writing { myfield: -1.0 }
Bug: 29338398
Change-Id: I6fc4ef1fd10bda3ba78cba464414dd071a2f50ca
Tested: on Linux.
2016-06-15 14:54:44 -07:00
Wouter van Oortmerssen
afa276288c
Added additional convenience overloads to CreateVector().
...
Bug: 29337887, 29336299
Change-Id: Iad8b3b2263f6cea7ee7e45994369194960df293b
Tested: on Linux.
2016-06-15 14:31:34 -07:00
Wouter van Oortmerssen
bafd48d96c
Merge branch 'master' of https://github.com/google/flatbuffers into fuzzer2
2016-06-08 11:51:49 -07:00
Wouter van Oortmerssen
2bdf44a25d
Added a way to get mutable tables out of a mutable vector of tables.
...
Change-Id: I8f9ef1d14f86671ced929c7a159115b1d8510327
Tested: on Linux.
2016-06-06 17:38:21 -07:00
Ben Gertzfield
6704b19db6
Handle \u-escaped surrogate pairs correctly in IDL parser
2016-05-23 16:38:55 -07:00
Ben Gertzfield
3400727fff
Fix undefined behavior in CheckBitsFit bit-shift on size_t
2016-04-29 15:15:09 -07:00
Wouter van Oortmerssen
72fc45aa6a
Made user-defined attributes available in the reflection data.
...
Tested: on Linux.
Bug: 27923233
Change-Id: Ic16675650e4a8e138c163f1e2131a3aad7008ada
2016-04-11 17:36:56 -07:00
Wouter van Oortmerssen
709e720839
Merge branch 'master' of https://github.com/google/flatbuffers
2016-03-07 15:04:18 -08:00
Wouter van Oortmerssen
958fc6ec49
Added support for easy string pooling.
...
Change-Id: I790cf681c1bffff800d77afb0e2f908d1c827679
Tested: on Linux.
Bug: 26186542
2016-03-07 12:58:36 -08:00
Nalinichandra Penke
cbab26673b
Fix #3775 : Skip unknown field names if they're quoted
2016-02-22 14:34:20 -06:00
Chandra Penke
b63ebad49d
Fix #3497 : Add support for compiling in g++ 4.4 and 4.5
...
- Removed uses of lambda expressions
- Added custom defines for constexpr and nullptr
- Removed trailing comma of last value from generated enums
2016-01-09 06:30:50 -06:00
Nalinichandra Penke
13d0594b4c
Fix #2775 : Add parser option to skip unknown JSON fields
2015-12-22 00:02:19 -08:00
Wouter van Oortmerssen
1891537236
Fixed reflection setting string not changing size field.
...
Change-Id: I3c3e88a79667d1733b6c47e43b55d8b2604ca8e2
Tested: on Linux.
2015-12-21 16:20:03 -08:00
Wouter van Oortmerssen
995ee86a6e
Added an IsFieldPresent helper function.
...
This is implemented as a template function, since Table::CheckField
is not reachable by subclasses of Table (private base class).
Change-Id: I1ed4d47ce7cb672460ccab61cf7442eb9136b0f1
Tested: on Linux.
Bug: 26273432
2015-12-21 12:17:59 -08:00
Wouter van Oortmerssen
a9909a0c18
Made sure all namespace test files get generated.
...
Also included them in the C++ test.
Change-Id: Ib0c8470f0aacdf16616c27494abdda57a010195d
Tested: on Linux.
2015-12-14 16:15:43 -08:00
Wouter van Oortmerssen
45bda6e08d
Added --gen-all to generate code for a schema and all its includes.
...
Also refactored the way options are stored.
Change-Id: I709ac908cd2aba396c9c282725cf1d42ccce0882
Tested: on Linux.
2015-12-04 09:44:31 -08:00
Wouter van Oortmerssen
4d7810424c
Allow structs to be parsed in JSON with out of order fields.
...
Also simplified the code and made it faster.
Change-Id: I1d83b1165a4a9a4380d1bfb5538769c012d2d367
Tested: on Linux.
2015-10-28 17:54:11 -07:00
Wouter van Oortmerssen
d236dea13d
Improved C++ asserts for nesting and not finishing buffers.
...
Change-Id: I82a392bd262b13e978df748bc54b7ac43aec1e15
Tested: on Linux.
2015-10-28 11:57:16 -07:00
Wouter van Oortmerssen
94680f5483
Added support for imports and many other .proto features.
...
Change-Id: I6600021b7ec8c486794349511232c3e604421c5b
Tested: on Linux.
2015-10-13 14:01:55 -07:00
Björn Reimer
5de28c74f9
serialize boolean in JSON to "true/false" instead of "0/1"
...
Change-Id: I90cf519c00eaf9ccd9fcab8035a91b9205587c3b
2015-09-16 10:31:38 -07:00
Wouter van Oortmerssen
ad84b5b8fa
Fixed AddFlatBuffer using wrong buffer length.
...
Also made the Xcode project link.
Tested: on OS X.
2015-08-03 17:39:47 -07:00
Wouter van Oortmerssen
7101224d86
Reworked reflection.h to be more general.
...
e.g. support generic reading/writing from structs/vectors etc.
Change-Id: I2eb6e24db088a72da444d5c8df7e506e53d5bc2d
Tested: on Linux.
Bug: 22660837
2015-08-03 16:42:05 -07:00
Wouter van Oortmerssen
4998ad7365
Added support for adding new tables/strings to an existing FlatBuffer.
...
As part of the reflection support.
Change-Id: Ie0a8e233bca7dffa4cff7e564660035d97ff8902
Tested: on Linux.
Bug:22637258
2015-07-31 09:44:25 -07:00
Wouter van Oortmerssen
cb2b2be54e
Reflection: generically copy (parts of) FlatBuffers.
...
Change-Id: Ief3f1507c003079eac90c2bb6c2abd64a80a0a34
Tested: on Linux.
2015-06-29 15:18:51 -07:00
Wouter van Oortmerssen
622b8d05cf
Fixed warnings on Windows
2015-06-15 17:35:07 -07:00
Wouter van Oortmerssen
81312c2128
Initial reflection and resizing functionality.
...
Tested: on Linux.
Change-Id: I8f7bccf9b1ad87fea788f85e23fa69435758feca
2015-06-15 15:53:10 -07:00
Wouter van Oortmerssen
1808337adc
Make generating dependent include files for C++ the default.
...
--gen-includes is now deprecate but still accepted.
--no-includes can be used instead when needed.
Change-Id: I2cd46d193032b9b7c31c76c6f655e9333d3a393a
Tested: on Linux.
2015-06-15 13:09:22 -07:00
Wouter van Oortmerssen
ddb1d5ffe4
Added a #define for running tests without file access.
...
Change-Id: Ib2b7aa8a5641cf73fa0d6f2000db7fdd1aabab66
Tested: on Linux.
2015-05-27 14:00:08 -07:00
rw
48dfc69ee6
Port FlatBuffers to Python.
...
Implement code generation and self-contained runtime library for Python.
The test suite verifies:
- Correctness of generated Python code by comparing output to that of
the other language ports.
- The exact bytes in the Builder buffer during many scenarios.
- Vtable deduplication correctness.
- Edge cases for table construction, via a fuzzer derived from the Go
implementation.
- All code is simultaneously valid in Python 2.6, 2.7, and 3.4.
The test suite includes benchmarks for:
- Building 'gold' data.
- Parsing 'gold' data.
- Deduplicating vtables.
All tests pass on this author's system for the following Python
implementations:
- CPython 2.6.7
- CPython 2.7.8
- CPython 3.4.2
- PyPy 2.5.0 (CPython 2.7.8 compatible)
2015-05-12 15:40:29 -07:00
Wouter van Oortmerssen
37e6efe1f9
Added accessor for file_extension in generated code.
...
Change-Id: I2de7d14dbb1f7b8f81022dd2c9da65060ae49300
Tested: on Linux.
2015-05-04 13:38:20 -07:00