Wouter van Oortmerssen
9140144d51
Added functionality to assign field ids manually in a schema
...
New attribute:
- `id: n` (on a table field): manually set the field identifier to `n`.
If you use this attribute, you must use it on ALL fields of this table,
and the numbers must be a contiguous range from 0 onwards.
Additionally, since a union type effectively adds two fields, its
id must be that of the second field (the first field is the type
field and not explicitly declared in the schema).
For example, if the last field before the union field had id 6,
the union field should have id 8, and the unions type field will
implicitly be 7.
IDs allow the fields to be placed in any order in the schema.
When a new field is added to the schema is must use the next available ID.
Change-Id: I8690f105f3a2d31fdcb75a4fab4130692b12c62f
Tested: on Windows
2014-07-08 11:12:33 -07:00
Wouter van Oortmerssen
a5f50019bc
Made declaring the underlying type of an enum mandatory.
...
This is a breaking change, anyone having schema files with enums
that do not specify a type will get a specialized error:
must specify the underlying integer type for this
enum (e.g. ': short', which was the default).
All of the samples and docs already had a type specified,
so hopefully this will affect very few people.
Bug: 15777205
Change-Id: I9b8d7c0827867f7efb6c217346db7e402695eff0
Tested: on Windows
2014-07-02 14:39:59 -07:00
Wouter van Oortmerssen
b863ac0171
Fixed helper function CreateVectorOfStructs calling wrong variant.
...
Change-Id: I4fd2a309276590227921ede467503f56b65ac689
Tested: on Windows and Linux
2014-07-02 14:39:59 -07:00
Wouter van Oortmerssen
f0b3c75779
Fixed flatc not stripping the path from the base filename.
...
This caused two bugs when used with a path: not being able to save
the generated files, and preprocessor defines with / characters in
them.
Bug: 15676771
Tested: on Windows
Change-Id: I62a3c45d22e2545fdaad83728d83a42a6efa37f9
2014-07-02 14:39:59 -07:00
Wouter van Oortmerssen
350011f581
Fixed a bugs in the Java runtime that could cause an index out of bounds exception.
...
Tested: on Windows.
Change-Id: I0d4cdafc21690eb9a509ba31f21e80dacfb602ff
2014-07-02 14:39:58 -07:00
Wouter van Oortmerssen
1256307a38
Switched VS build to -W4, and fixed all resulting warnings.
...
Change-Id: I654217cbd01a3a449503d95753e19b672ec7ec23
Tested: on Windows, Linux
2014-07-02 14:39:58 -07:00
Wouter van Oortmerssen
a0b6ffc25b
Add buffer verification functionality to FlatBuffers
...
Bug: 15732628
Change-Id: I0b7cb65982d6b8957d5a899cca7d2b5d2ef53206
Tested: On Windows, OS X and Linux
2014-07-01 17:52:16 -07:00
Wouter van Oortmerssen
59043114ac
Generated C++ headers now have include guards.
...
Bug: 15700355
Change-Id: Iceccb5b344e394e399092ffaa81f9cad2f0418ab
Tested: on Windows
2014-06-23 17:06:16 -07:00
Wouter van Oortmerssen
d58da1db14
Merge "license is a comment, not an echo" into ub-games-master
2014-06-23 21:56:00 +00:00
Wouter van Oortmerssen
5b4c39250f
Merge "show absolute path to user when aborting" into ub-games-master
2014-06-23 21:56:00 +00:00
Wouter van Oortmerssen
82ef4ae2e1
Merge "sh script for JavaTest" into ub-games-master
2014-06-23 21:50:10 +00:00
Wouter van Oortmerssen
76227f201d
JSON text output now optionally doesn't output linefeeds either.
...
Change-Id: Iedac80ee00b27a97c21c7b4ac7c9792e5bafbcc8
Tested: On Windows
2014-06-23 14:14:31 -07:00
Wouter van Oortmerssen
ff0d7a89d8
Doc clarifications (Java vectors, test working dir, benchmark fix).
...
Change-Id: If8cc05669d82df892e1d4e11f7fbbd68b2dc05bf
2014-06-23 14:00:58 -07:00
rw
e2c02b833e
license is a comment, not an echo
2014-06-23 13:37:32 -07:00
Wouter van Oortmerssen
65cfa18855
force_align was applied after struct size was set.
...
Change-Id: I9a35afac41f27dfdbc5e793c41ec768732cdc2a1
Tested: on Windows.
2014-06-23 12:04:36 -07:00
Wouter van Oortmerssen
58703a4f4c
Fixed bug that caused creating 0-length arrays to crash
...
Change-Id: Ibb0da5b57a2f63804c071863d8c60b845e0aece7
Tested: on Windows
2014-06-23 10:55:04 -07:00
rw
0b60ece438
show absolute path to user when aborting
2014-06-20 16:51:32 -07:00
rw
69dc8cbbc3
sh script for JavaTest
2014-06-20 16:21:49 -07:00
Wouter van Oortmerssen
fadb71f2a2
Merge "Fixed various compiler warnings (most related to a 64bit size_t)." into ub-games-master
2014-06-19 14:48:39 +00:00
Wouter van Oortmerssen
aab06c6bea
Fixed various compiler warnings (most related to a 64bit size_t).
...
Change-Id: Ic2e0565ebc5243fc0be780bfbcb221d5170569fd
Tested: on VS2010
2014-06-19 12:04:39 -07:00
Wouter van Oortmerssen
ad84a663be
Added 64bit configuration to VS project, and fixed dangling project references.
...
Change-Id: I7a0713e3357fc421fcaa6771c9440f2b2f5f58f6
Tested: with VS2010
2014-06-19 11:27:07 -07:00
Barak Amar
66583e8a3f
Fix compilation with VS 2013 missing header
2014-06-19 10:57:53 -07:00
Wouter van Oortmerssen
66de19ace8
Documentation changes to clarify FlatBuffer internals.
...
Change-Id: I3759a07385f0d8d172ca2f88ac1759b71bee5a6a
2014-06-17 17:49:50 -07:00
Wouter van Oortmerssen
41a6d35e74
Fixed a bug in the Java code generation that would generate the wrong identifier in some cases.
...
Also added a safety check for buffers growing past 2 gigabytes.
Change-Id: I2bca7159f606cf1c08c4391e88ef9b4c8363be06
Tested: With the Java sdk.
2014-06-17 17:34:03 -07:00
Wouter van Oortmerssen
1485180517
Fixed the web pages not scrolling by regenerating with doxygen.
...
Change-Id: Id1269f85ec2f522c8d4b0d05f84d050b42d70d60
Tested: on Android
2014-06-17 13:35:47 -07:00
Wouter van Oortmerssen
f694bf0913
Removed all unnecessary files from the Xcode project
...
Change-Id: I60c20e184f51906e6e2fb3880d593584aac0e2fb
Tested: on OS X
2014-06-13 11:15:06 -07:00
Wouter van Oortmerssen
832df559ce
Removed two user-specific files from the Xcode project
...
Tested: on OS X.
Change-Id: I19950092140288916651f8c956d05e8c7879c717
2014-06-12 15:33:45 -07:00
Wouter van Oortmerssen
3bcab16e91
Added project files for Visual Studio and Xcode.
...
Change-Id: Ife9775fdedc9e084c1e826ef13dff06a1b1b2ec2
Tested: on Windows and OS X.
2014-06-11 15:19:12 -07:00
Wouter van Oortmerssen
26a30738a4
Initial commit of the FlatBuffers code.
...
Change-Id: I4c9f0f722490b374257adb3fec63e44ae93da920
Tested: using VS2010 / Xcode / gcc on Linux.
2014-06-10 13:53:28 -07:00
Baligh Uddin
c1b43e22b0
Initial empty repository
2014-01-27 16:13:27 -08:00