Wouter van Oortmerssen
6e177bf03f
Merge branch 'master' of https://github.com/google/flatbuffers
2016-06-17 17:44:00 -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
5a401aef57
Merge pull request #3897 from Lakedaemon/namespaceWork
...
Namespace work
2016-06-13 15:16:28 -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
lakedaemon
a3a2bf890f
Better C++ namespace management
2016-06-02 23:11:51 +02:00
lakedaemon
a9194c4c68
cpp generator : pulling all methods inside the class
2016-06-02 21:56:27 +02:00
lakedaemon
cd1493b082
sharing the Flatbuffers warning
2016-05-26 15:26:58 +02:00
Wouter van Oortmerssen
a98bff3ea1
Add simple libfuzzer based test.
...
This tests the verifier and the parser.
Tested: on Linux.
Bug: 27230459
Change-Id: I3417faba9385dc941199c57a08d8a50c2faec1aa
2016-05-25 17:25:40 -07:00
Ben Gertzfield
6704b19db6
Handle \u-escaped surrogate pairs correctly in IDL parser
2016-05-23 16:38:55 -07:00
Wouter van Oortmerssen
64b91da9cf
Uncomment the corpus attribute since b/28762769 is fixed,
...
add more items to the corpus (taken from the ClusterFuzz-generated corpus).
(mirrored from cl 122690857)
Change-Id: I98c7672169a9a27fe18bedae8501e6fb85a0681d
2016-05-23 16:37:57 -07:00
Wouter van Oortmerssen
fe9787e58d
Add a fuzzer for flatbuffers, derived from the one used in Chromium:
...
https://code.google.com/p/chromium/codesearch#chromium/src/testing/libfuzzer/fuzzers/flatbuffers_verifier_fuzzer.cc
(mirrored from cl 122676317)
Change-Id: I0074af435cf37f5e6368b040563c3733d9e02345
2016-05-23 16:35:20 -07:00
Wouter van Oortmerssen
a42a99029f
Made .sh files all have same comment formatting.
...
Change-Id: Ie7cc268a8823aec1d06c8b7cbef54068d832de3a
2016-05-23 14:08:21 -07:00
Wouter van Oortmerssen
8c0d56d55a
Removed BOM marker from some files.
...
Also removed some trailing whitespace.
Change-Id: I40bf4f776ca4d467b7ee6f2c9a7500c13700f9d5
2016-05-23 12:24:44 -07:00
Wouter van Oortmerssen
c41a0453c1
Merge branch 'master' of https://github.com/google/flatbuffers
2016-05-23 10:59:47 -07:00
Wouter van Oortmerssen
1a161a8333
Added missing licenses to some sh/cs/py files.
...
Bug: https://github.com/google/flatbuffers/issues/3872
Change-Id: I5d551168e9bc925e867e5e4ddf5d809418fd44eb
Tested: on Linux.
2016-05-23 09:51:41 -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
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
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
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
Robert Nix
2f5d7ae645
Fix javascript unicode test
...
The generated buffer should be tested for semantic equivalence
to the correct buffer, instead of being tested for bytewise
equality.
2016-02-12 12:31:25 -06: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
db0727e943
Merge pull request #3734 from evolutional/cs-forcedefaults
...
Implemented ForceDefaults option on C# FlatBufferBuilder.
2016-01-20 13:46:49 -08:00
Wouter van Oortmerssen
0afac8f75a
Merge branch 'master' of https://github.com/google/flatbuffers
2016-01-20 13:30:09 -08:00
Wouter van Oortmerssen
519dcdd0b2
Fixed Python unit test breakage.
...
Test was testing for a field to be None, even though it is populated
in one particular instance.
Change-Id: Id19848d01498d4c0a684efdb2bf49ff12c5b6758
Tested: on Linux.
2016-01-20 13:04:03 -08:00
Oli Wilkinson
fff4590faf
Implemented ForceDefaults option on C# FlatBufferBuilder.
...
Tested on: Windows, Unit Tests
2016-01-20 17:25:58 +00:00
Robert
b7d97ff3de
Merge pull request #3491 from faizanrashid/master
...
[BUG FIX] [MINOR] Fix encoding with unicode characters.
2016-01-19 17:56:26 -08:00
Mark Klara
69a31b807a
Revamping the FlatBuffers docs.
...
Adding an API reference for the supported languages.
General docs cleanup, including a new `tutorial` section that
supports all of the supported languages.
Added samples for each supported language to mirror the new
tutorial page.
Cleaned up all the links by making them `@ref` style links,
instead of referencing the names of the generated `.html` files.
Removed all generated files that were unnecessarily committed.
Also fixed the C# tests (two were failing due to a missing file).
Bug: b/25801305
Tested: Tested all samples on Ubuntu, Mac, and Android. Docs were
generated using doxygen and viewed on Chrome.
Change-Id: I2acaba6e332a15ae2deff5f26a4a25da7bd2c954
2016-01-19 14:31:17 -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
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
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
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
Faizan Rashid
af23683311
[BUG FIX] [MINOR] Fix encoding with unicode characters.
...
When passing a unicode string to builder.CreateString, the
default encoding assumed all characters can be encoded
using ascii. Added a fix so a user can specify the
encoding and how to handle errors when creating strings.
2015-12-31 09:45:09 +05:00