Wouter van Oortmerssen
f6330ab8f1
Fixed SkipByteOrderMark advancing cursor_ too early.
...
Change-Id: Ie60f01d935ca6b4aa6ce0eab7598602ac0758342
Tested: on Linux.
2016-04-22 11:27:35 -07:00
Wouter van Oortmerssen
fd542c71e3
Fixed float suffix not being added on implicit float defaults.
...
Change-Id: I8dcbb5e93836356511d411ef86452babd3dd3c0b
Tested: on Linux.
2016-04-20 12:06:32 -07:00
Wouter van Oortmerssen
4d7890c2c9
Fixed whole-number float default values missing a .0 suffix.
...
A previous commit that added "f" for C++/Java/C# would break
on gcc of constants like 3f, which are now output as 3.0f
Tested: on Linux
Change-Id: If9cabbe3c6d6948a5050b8b123bda9c06e181f52
2016-04-18 11:50:46 -07:00
Wouter van Oortmerssen
29d957ed5e
Fixed missing "f" on float default values in C++/Java/C#
...
Bug: 28145201
Change-Id: I5a1818c40c2f4fbd00cfec3362040407976f7a39
Tested: on Linux.
2016-04-13 17:29:03 -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
83dc5ed4a7
Fixed JSON integers as strings not being parsed correctly.
...
Change-Id: If34aef46ef619e06de799cff14948b02e98da86d
Tested: on Linux.
2016-04-11 11:08:09 -07:00
Wouter van Oortmerssen
e597ad8f0f
Fixed pre-declarations of included types in generated code.
...
This was harmless, but unnecessary.
Change-Id: I1365a725e254d4ebbda081110a50277cb5118323
Tested: on Linux.
2016-04-11 11:05:42 -07:00
Wouter van Oortmerssen
5e3f9d5175
Merge branch 'master' of https://github.com/google/flatbuffers
2016-04-04 16:55:25 -07:00
Wouter van Oortmerssen
e98b1912b3
add setloadfile and setfileexists functions to flatbuffers
...
to allow for custom file loaders. The targeted use case is android runtime.
(from CL 116980408)
Change-Id: I8785c0acf714fab41d8f6fc9f1c52875423b8f5b
2016-04-04 13:03:22 -07:00
Wouter van Oortmerssen
2f7f50b8cb
Merge pull request #3816 from armen/master
...
Implement __vector_as_bytes and methods to get [ubyte] efficiently
2016-03-30 14:04:36 -07:00
Nnamdi
35f6bb5060
Added --gen-name-strings command line option.
...
To support the use case described in issue google/flatbuffers#3826 , a new command line option --gen-name-strings
has been added, which will cause a static GetFullyQualifiedName function to be added
to the C++ output for tables/structs.
2016-03-29 22:25:04 +01:00
Armen Baghumian
28a3c939e7
Implement __vector_as_bytes and methods to get [ubyte] efficiently
...
Currently in order to get a value type of [ubyte] in PHP, iteration is
necessary which is not efficient. Helper __vector_as_bytes has been
implemented in order to return the byte arrays in PHP efficiently.
Appropriate methods also been added to use aforementioned method to return
the byte array. (e.g. get*Bytes()).
The reason the methods are named get*Bytes() and not for instance
get*ByteArray() is the fact that PHP doesn't support byte arrays and the
binary safe string implementation in PHP is used to simulate byte arrays
and since there is chance for PHP users to confuse this with PHP arrays
the name get*Bytes() has been chosen.
In the future __vector_as_bytebuffer() method can also be implemented to
return PHP implementation of ByteBuffer.
2016-03-29 14:56:09 +11:00
Wouter van Oortmerssen
e6b79f0002
Added stream & idempotent annotations for RPCs.
...
Change-Id: Ia8651c1051808fdda0dc0ba52ec991777f868e88
Tested: on Linux.
2016-03-09 15:03:05 -08:00
Wouter van Oortmerssen
1a63eb46bb
Added RPC declarations to the schema parser.
...
This is the first step in RPC support. Actual code generation
to follow.
Change-Id: I96c40fec3db671d100dd9eb509a71c5cbe55bfb2
Tested: on Linux.
Bug: 20122696
2016-03-09 13:47:40 -08:00
Wouter van Oortmerssen
fbc8af40e3
Allow JSON numeric fields to be specified by a numeric data in a string.
...
Change-Id: I6a3fae1e71434a7384edc39b8602bd84a0432edb
Tested: on Linux.
Bug: 24140897
2016-03-07 17:22:51 -08: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
Wouter van Oortmerssen
617fedf349
Merge pull request #3765 from Mischanix/js-typed-arrays
...
Javascript helper to get typed array views
2016-02-26 09:51:50 -08:00
Evan Wallace
31b30335f6
Fix #3773 : Generated JS now avoids the flatbuffers object
2016-02-25 01:06:16 -08:00
Nalinichandra Penke
cbab26673b
Fix #3775 : Skip unknown field names if they're quoted
2016-02-22 14:34:20 -06:00
Wouter van Oortmerssen
20c0082ee5
Fixed namespace code generation for C++
...
The code generator was assuming all declarations for the current
file sit in the same namepace. Now uses the "on demand" namespace
switching we had for the forward declarations.
Also fixed a bug related to namespace lookup.
Change-Id: Ib54a3efbc752cbb9590302fa0707c0c73448db3d
Tested: on Linux.
2016-02-17 11:26:38 -08:00
Robert Nix
9d92aeb182
Add helper for javascript typed arrays
...
For scalar vector fields, emit an Array helper that
returns a typed array view of the underlying bytes buffer.
2016-02-12 12:41:28 -06:00
Wouter van Oortmerssen
d779308b3e
Fixed enum declaration values being parsed as int.
...
This caused values in the uint range to be made negative values.
Change-Id: Ia4284747f48508b589c034ff3aae0d141e96eb3c
Tested: on Linux.
2016-02-10 11:25:31 -08:00
Wouter van Oortmerssen
38662548c7
Bumped version to 1.3.0
...
Change-Id: I080041e533153b2bb2db53f030761852e95c88fa
2016-02-03 10:52:33 -08:00
Eddie Scholtz
ac655b3ff0
Remove -v as option for printing version # (based on PR feedback).
2016-02-01 13:54:09 -08:00
Eddie Scholtz
0b3cd33e55
Add __DATE__ to FLATC_VERSION based on PR feedback.
2016-02-01 13:43:05 -08:00
Eddie Scholtz
e43d127eff
Add -v --version arg support to the flatc command.
2016-01-29 15:01:54 -08:00
Oli Wilkinson
dbf6702371
Added support for C# partial class generation when the csharp_partial attribute is used on a table/struct.
2016-01-21 15:42:30 +00:00
Wouter van Oortmerssen
2ab7ebc82b
Merge pull request #3510 from jaakristioja/patch-1
...
Fixed comment typo
2016-01-19 15:36:45 -08:00
Wouter van Oortmerssen
d75d29e2fe
Merge branch 'master' of https://github.com/google/flatbuffers
2016-01-19 14:10:49 -08:00
Wouter van Oortmerssen
049f3f7907
Added support for parsing JSON null value.
...
These cause the field in question to be skipped.
Bug: 16550393
Change-Id: Id05104e89818ee773b8a91fdcc86e18061b9a82f
Tested: on Linux.
2016-01-19 14:05:27 -08:00
Wouter van Oortmerssen
e848137ded
Added min/max values for enums/unions.
...
Bug: 21642898
Change-Id: Ifaf0b3c4274fe30ef29507ba1c1216d700efe85b
Tested: on Linux.
2016-01-19 14:05:27 -08:00
Wouter van Oortmerssen
7d70082590
Merge pull request #3706 from evolutional/fix-3506
...
Check (& skip) of the utf-8 byte order mark
2016-01-19 11:10:07 -08:00
Wouter van Oortmerssen
8472b5f224
Merge pull request #3513 from evolutional/fix-3500
...
Java/C#: generation of typed helpers when using nested_flatbuffers
2016-01-19 10:40:02 -08:00
Wouter van Oortmerssen
6136dd490a
Merge pull request #3498 from ncpenke/gcc-4.4.3-support
...
Gcc 4.4.3 support
2016-01-19 10:27:57 -08:00
Oli Wilkinson
cbe8747b59
Added check (& skipping) of the utf-8 byte order mark (0xEF BB BF) at the beginning of the file
2016-01-18 20:14:39 +00:00
Oli Wilkinson
eaa2b414b2
Added generation of typed helpers when using nested_flatbuffers in Java/C#. Fixes #3500
2016-01-18 15:23:14 +00:00
Jaak Ristioja
77a6a786b8
Fixed comment typo
2016-01-13 15:30:27 +02: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
Wouter van Oortmerssen
42c20d7a69
Make flatc check for binary files to avoid accidental parsing.
...
Binary file arguments to flatc have to be preceded by -- to
identify them, forgetting this however results in them being
attempted to be parsed as schema/json, with cryptic errors.
This instead gives an error if 0 bytes are contained in your
text file.
Bug: 22069056
Change-Id: I226bf651dcb016f18d7c8ffadcf23466a1fc0b87
Tested: on Linux.
2016-01-08 13:10:25 -08:00
Wouter van Oortmerssen
63b526db52
Ensured code is not generated directly from .proto files.
...
The parser state generated from the .proto conversion process is
not exactly the same as what you get by parsing the generated
schema, which can cause problems. This check enforces that you
first convert the .proto, then generate code from the new schema.
Change-Id: I04b53af9288d87e256d1cc109388332fefb3a09f
Tested: on Linux.
2016-01-08 11:39:56 -08:00
Wouter van Oortmerssen
586fdee89b
Merge pull request #3494 from parnic/fix-vs2012-static-analysis
...
Fixed MS static analysis warnings
2016-01-06 12:34:08 -08:00
Chris Pickett
e1e7dfa625
Fixed warning building in VS2012
...
src\reflection.cpp(297): warning C4267: 'argument' : conversion from 'size_t' to 'flatbuffers::uoffset_t', possible loss of data
sizeof() was promoting the type from uoffset_t to size_t.
2016-01-06 12:45:24 -06:00
Chris Pickett
30013b4ff8
Fixed MS static analysis warnings
...
Cleaned up a few warnings to allow VS2012 to compile idl_parser and idl_gen_text (for exporting binary protobuf blobs as JSON) cleanly under static analysis.
2016-01-05 13:38:59 -06:00
Chris Pickett
e0b2f81885
Fixed compile warning with VS2012
...
flatbuffers\src\idl_parser.cpp(1516): warning C4244: 'argument' : conversion from 'int' to 'char', possible loss of data
2016-01-05 10:58:40 -06:00
Chris Pickett
0e1601b80d
Fixed compile warning with VS2012
...
flatbuffers\src\idl_parser.cpp(1525): warning C4127: conditional expression is constant
flatbuffers\src\idl_parser.cpp(1546): warning C4127: conditional expression is constant
2016-01-05 10:58:21 -06:00
Wouter van Oortmerssen
a6a38f6035
Merge branch 'master' of https://github.com/google/flatbuffers
...
Fixed conflicts and added missing generated files.
Change-Id: I4321c798543292d814c2c9e8b238c203b7526c7b
2016-01-04 13:06:19 -08:00
Wouter van Oortmerssen
451272b618
Made error checking macros less prone to clashes.
...
Change-Id: Ieb252ce01446551699d935507bc95ee286fe1ddd
Tested: on Linux.
2015-12-29 16:33:00 -08:00
Wouter van Oortmerssen
8f13c828f5
Merge pull request #2776 from ncpenke/skip-unknown-json-fields
...
Fix #2775 : Add parser option to skip unknown JSON fields
2015-12-29 10:29:11 -08:00
Wouter van Oortmerssen
e6240f4039
Merge pull request #2790 from chobie/php-table-fix
...
(PHP) fixes getting indirect table, also fixes getInt method on 32bit machine
2015-12-29 10:25:21 -08:00