Jon Simantov
dac63a227e
Fix missing break statement in SetAnyValueS case.
...
Causing SetAnyValueS to treat all scalars as integers.
Change-Id: Ib467b255e7f32a1478180a91e65def31676399eb
2015-08-05 16:06:47 -07:00
Wouter van Oortmerssen
986b52d849
Merge pull request #247 from stewartmiles/master
...
Clarified the use of the deprecated flatc --gen-includes flag.
2015-08-05 13:58:17 -07:00
Wouter van Oortmerssen
45cc503bbd
Changed maximum force_align to match the C++ code generator.
...
Change-Id: I7df2b0172f5de6f7bdbd8778361794004cd06062
Tested: on Linux.
2015-08-05 13:56:31 -07:00
Stewart Miles
6aeb09b297
Clarified the use of the deprecated flatc --gen-includes flag.
...
Also, removed the flag from the Android makefile.
Tested:
Verified flatc builds successfully on Linux and regenerated the docs.
Change-Id: I7140daa10b7cb9a29b5ffd63c6b20489e72a5899
2015-08-05 13:26:13 -07:00
Wouter van Oortmerssen
210c0ece54
Fixed VS project file.
...
Tested: on Windows.
2015-08-03 17:56:09 -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
0e064e415b
Fixed small inaccurracies in the schema grammar.
...
Change-Id: I6e9e66c3d7d67c54617bc892f612b7341bebd7e0
2015-07-31 12:26:23 -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
9a30d3d0df
Merge pull request #241 from RevenantX/master
...
[BREAKING CHANGE] Base type safety in C#. Clear FlatBufferBuilder in C#.
2015-07-29 11:36:03 -07:00
RevenantX
0b761ece4d
default in switch.
2015-07-29 00:45:26 +03:00
RevenantX
01249c1d48
remove unused funciton.
2015-07-29 00:40:48 +03:00
RevenantX
588564d74f
Base type safety in C#. Clear FlatBufferBuilder in C#.
2015-07-29 00:33:45 +03:00
Wouter van Oortmerssen
6e192fa408
Updated documentation to use new css style.
...
Change-Id: I05e2f8fd06026645a8e5da1703d757ad9de10b4f
Tested: on Linux.
2015-07-22 13:10:37 -07:00
Wouter van Oortmerssen
12ca3e054e
Fixed compile error in older gcc's for trailing comma in enum.
...
Change-Id: I60f6da32fb2a30557fcf842624f68ca184f65e1f
Tested: on Linux.
2015-07-22 12:35:40 -07:00
Wouter van Oortmerssen
62af533820
Merge pull request #237 from jonsimantov/master
...
Add optional root table to SetString and ResizeVector, when your Flatbuffer isn't the schema's root type.
2015-07-22 12:03:39 -07:00
Jon Simantov
b56020ad3b
Updated pointer syntax to be consistent in SetString, etc.
2015-07-22 11:46:14 -07:00
Jon Simantov
6e160f4c59
Use Object* for optional root_table in SetString/ResizeVector.
...
Was previously using table name, but no reason not to just let the
calling code worry about getting the object.
2015-07-22 10:56:41 -07:00
Wouter van Oortmerssen
07e77ad0ff
Merge pull request #238 from martell/master
...
Add a libflatbuffers for other projects to use
2015-07-22 10:02:11 -07:00
Wouter van Oortmerssen
b6380aceac
Fixed reflection resizing code not checking strings in vectors.
...
Change-Id: I4081160a8281939ab282d7914ae396276c767882
Tested: on Linux.
2015-07-22 09:57:35 -07:00
Martell Malone
79d3cb6a6c
Add a libflatbuffers for other projects to use
2015-07-22 17:53:19 +01:00
Jon Simantov
a4de6de700
Add optional root table name to SetString and ResizeVector.
...
This allows you to use these functions with a flatbuffer whose root
table type does't correspond with the root table type of the schema.
If you don't specify the table name, it will use the root table from
the schema by default (mimicing the current behavior).
2015-07-22 02:01:56 -07:00
Wouter van Oortmerssen
f66e93cd8d
Merge pull request #233 from aeneid/master
...
fix for parameter name clash in generated structs
2015-07-13 13:27:54 -07:00
aeneid
59a09cb1d0
comment update
2015-07-13 22:58:54 +03:00
Maor Itzkovitch
c23c620d26
applied struct parameter fix to Go and Python generated classes
2015-07-13 22:53:59 +03:00
Wouter van Oortmerssen
4798456df6
Fixed type specifiers in the grammar document.
...
Change-Id: Ia6b976f0eb6a99d710bcd09cb56339580ff69f5b
2015-07-13 10:31:10 -07:00
Maor Itzkovitch
147fbb4285
builder.put statements now use correct argument names
2015-07-13 20:00:48 +03:00
aeneid
a9ae9bdcab
comment update
2015-07-12 22:12:58 +03:00
aeneid
f7d8102b35
Passed field name as prefix for nested structs
...
This pull request should fix #232 .
Pass field name instead of struct name as nameprefix for nested structures. Continuously concatenate nameprefix arguments to support deeper nested structures.
2015-07-12 22:10:57 +03:00
Wouter van Oortmerssen
d0e9bc6a75
A few schema documentation fixes.
...
Change-Id: I140e1322fc1bfb3ab8012e00d8f3006ee2e7ce95
2015-07-08 17:49:49 -07:00
Wouter van Oortmerssen
d863df8683
Merge pull request #230 from aeneid/master
...
included stdio.h in include/flatbuffers/hash.h
2015-07-08 09:01:17 -07:00
aeneid
4834634766
Update flathash.cpp
2015-07-07 08:14:00 +03:00
aeneid
a4c893dbe2
Update hash.h
2015-07-07 08:13:08 +03:00
Wouter van Oortmerssen
8833255ed3
Merge pull request #227 from evanw/master
...
Round up allocation size to avoid misalignment (issue #226 )
2015-07-06 13:32:44 -07:00
aeneid
fb5f9456e9
Merge pull request #1 from aeneid/aeneid-patch-1
...
added #include <stdio.h>
2015-07-05 20:27:20 +03:00
aeneid
0dacfbbfca
added #include <stdio.h>
2015-07-05 19:50:50 +03:00
Evan Wallace
47aab78233
Round up allocation size to avoid misalignment (issue #226 )
...
Before this change, requesting a large initial allocation could cause the
backing store to grow to an unaligned size. Since memory inside vector_downward
is relative to the end of the buffer, this then caused all memory in the buffer
to be misaligned and also misaligns any further loads and stores. Misaligned
loads and stores are undefined behavior and don't work in environments such as
emscripten (a JavaScript to C++ compiler).
2015-07-02 14:05:45 -07:00
Jon Simantov
185b9f9792
Allow customization of flatc cmdline arguments on Android.
...
On Android builds, set FLATBUFFERS_FLATC_ARGS to change the arguments
passed to the flatc cmdline. Do this in your Android makefile where
you include the flatbuffers include.mk (before or after).
For example FLATBUFFERS_FLATC_ARGS=--gen-mutable
The default value is --gen-includes although since that is deprecated
we could just make the default value blank.
Change-Id: I79fb35f50c3e21bbef18ad40ad3559cb026ffe8e
2015-07-01 11:46:19 -07:00
Wouter van Oortmerssen
21765bea2e
Made warning settings in Xcode more aggressive.
...
Tested: on OS X.
2015-06-29 15:49:13 -07:00
Wouter van Oortmerssen
36c7e9a962
Fixed null root_table access in binary schema generation.
...
Change-Id: Ia2b7abc10bee52814e815befcad6a89697295d8f
Tested: on Linux.
2015-06-29 15:21:48 -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
Robert
1c152cc72a
Merge pull request #222 from rw/go-update-panics
...
Panic when nesting strings. Test panic scenarios.
2015-06-29 18:10:44 -04:00
gwvo
d67661eb39
Merge pull request #224 from rubber-duck/master
...
Fixed argument value to correct type
2015-06-29 10:44:11 -07:00
gwvo
ea97e1b5e2
Merge pull request #223 from belm0/csharp_docs
...
Java/C-sharp docs: fix typo, clarify parser availability.
2015-06-29 09:55:38 -07:00
Rafael Munitić
dca3ccf5fd
Fixed argument value to correct type
2015-06-26 21:28:39 +02:00
John Belmonte
ef7b3ed8f5
Java/C-sharp docs: fix typo, clarify parser availability.
2015-06-25 14:42:41 -07:00
rw
4d305f5922
Panic when nesting strings. Test panic scenarios.
...
Also add a new `insideObject` boolean to the Builder to track whether an
object is currently being constructed. This fixes a bug with objects
that have zero fields.
2015-06-24 11:53:44 -04:00
Wouter van Oortmerssen
1e6f8f5b8c
Fixed possible crash from reference to non-static variable.
...
Change-Id: I1842098a7ef461e2e92dd35d79d8ca303e814867
Tested: on Linux.
2015-06-22 10:23:42 -07:00
Wouter van Oortmerssen
c967515da5
Small improvements to the C++ API.
...
Change-Id: Ib30ffbbd140a8b82fe664129fa4e8c55836267f8
Tested: on Linux.
2015-06-17 17:17:01 -07:00
Wouter van Oortmerssen
576022c64b
Changed VS flatc test settings to match Linux.
2015-06-17 10:27:05 -07:00