Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
This commit fixes handling of default and NULL `key` fields in `Parser::ParseVector` (#5928).
The JSON generator updated. It outputs `key` fields even if the `--force-defaults` option is inactive.
Additional test cases for `key` added.
|
|
Change-Id: I84a9365e9d8a1afe333b1df85058401ffe0a6b7c
|
|
* Java: Added access object for vector of struct and vector of tables.
* Java: Workarounds removed when accessing the union vector.
|
|
* Add FLATBUFFERS_COMPATIBILITY string
- Add a new __reset method NET/JAVA which hides internal state
* Resolve PR notes
* Use operator new() to __init of Struct and Table
* Restrict visibility of C# Table/Struct to internal level
|
|
This is done on purpose, to avoid API version mismatches that
can cause bad decoding results, see:
https://github.com/google/flatbuffers/issues/5368
Change-Id: I2c857438377e080caad0e2d8bcc758c9b19bd6ec
|
|
Change-Id: I7f1f12f2f97e5227e0dabc2965ce66a6d41c229c
|
|
vtable and vtable size depends only on `Table#bb_pos` but calculated in
`Table#_offset` method on each field lookup.
Doing this with every call of `Table#__offset` is redundant.
These values can be read once with change of `Table#bb_pos` and reused
for any field lookup.
|
|
* Fixed vector of unions crash in java
* Regenerated test code
* Fixed windows tests
|
|
https://github.com/google/flatbuffers/pull/4986 missed part of the
implementation.
Change-Id: Ie41771eb018a550c289c77ebe9ef5c50d1ad6751
|
|
* Add @javax.annotation.Generated to generated flatbuffer Java types.
* Updating test goldens.
|
|
* Java + C#, reuse object in lookup_by_key
* Java + C#, reuse object in lookup_by_key
|
|
default value (#4051)
* Java: emit "signed" equivalent of unsigned default value in generated code and add "L" suffix to long default value.
* Updated generated code
* Only convert ulong to "signed" equivalent. ubyte and ushort don't need specific handling as "user facing" type is int. uint need 'L' suffix as "user facing" type is long.
* Added missing cast to primitive type of default value which is in "user facing" type in builder.add<type>() calls.
* Do not cast default value to actual type in C#.
|
|
|
|
|
|
|
|
Fixes a bug where the logic to determine when to use a C# enum flags
both enums and vectors of enums. This causes the C# generator to
generate code that doesn't compile for tables that contain vectors of
enums.
The fix also consolidates type generation functions a bit and adds
some additional casting functions for clarity.
|
|
Change-Id: I6600021b7ec8c486794349511232c3e604421c5b
Tested: on Linux.
|
|
|
|
|
|
|
|
Makes enums/structs/tables unsubclassable (final or sealed) and
prevents instantiation of enum classes (which are solely static
constants).
Tested (Mac OS 10.10.2):
1. run flattests
2. cd tests && ../flatc -c monster_test.fbs && ../flatc -j
monster_test.fbs && ../flatc -g monster_test.fbs && ../flatc -n
monster_test.fbs # Note deltas for C# and Java.
3. ./JavaTest.sh
**Breaking api change**
Change-Id: Ie008c941c36d212690da58ddc72c9b228eb7a093
|
|
(Java doesn't support unsigned types).
ubyte/ushort return as int
uint returns as long
(all with correct masking)
ulong still returns as long, as before.
Tested: on Linux & Windows.
Bug 17521464
Change-Id: Id6bc8f38fc8c1a2f4e6733c6980dc6b6e322b452
|
|
getRootAs..() function now has a second implementation that
accepts an existing object to allow object reuse, much like
all other methods that refer to objects.
Change-Id: Iffef567c903a130761ef7de98867e5465d29a04d
|
|
Also fixed Go unit tests not being up to date with recent schema
changes.
Change-Id: I42e619f9c5ea05f6f937c68a5c8a92462c46bce3
Tested: on Linux and Windows.
|