Wouter van Oortmerssen
dae513e0e7
Made nesting vs inline clearer in the docs.
...
Also fixed structs not being created inline in the tutorial,
which would actually have bad consequences if used.
Change-Id: Idce215c61a1b24a297cee76f625052bb2722e970
2016-10-21 15:22:14 -07:00
Wouter van Oortmerssen
6862b2ff08
Added functionality to obtain a buffer pointer from a root.
...
Change-Id: Ia63e41d0304e8668ea4ce09a4c31dd999eb96994
Tested: on Linux.
Bug: 32218623
2016-10-19 16:24:24 -07:00
Wouter van Oortmerssen
22e87071dd
Fixed lambda return value error on VS2010.
...
Change-Id: I6d0e8469bfa5b4c8a3f1cb119e186f4cf62c76ae
2016-10-17 15:04:12 -07:00
Wouter van Oortmerssen
606098cac8
Fixed unused variable warnings, and made sure they are on.
...
Tested on Linux.
Change-Id: Ie18d6857f9ae8b1c3953a116203b4a8bb70a2ede
2016-10-17 13:06:11 -07:00
Wouter van Oortmerssen
b5c622762b
Fixed broken traits codegen for --scoped-enums.
...
Change-Id: I5f538d12ea37d11d2e239ddde32eefcdd91e347b
Tested: on Linux.
2016-10-17 11:53:28 -07:00
Wouter van Oortmerssen
2beb985fcc
Merge branch 'master' of https://github.com/google/flatbuffers
2016-10-17 10:46:14 -07:00
Zhe Wang
fd97404c51
Add missing include ( #4052 )
2016-10-17 09:57:46 -07:00
Wouter van Oortmerssen
d9fe4e2769
Allow other pointer types than unique_ptr for object API.
...
Change-Id: I945890ce667a2f5a6c0495e78fd5326ed33b9914
Tested: on Linux.
Bug: 30135763
2016-10-17 09:54:52 -07:00
Wouter van Oortmerssen
424fc0c3ac
Fixed inconsistent use of namespace directory prefixing.
...
Change-Id: I2cab7a1f68b8e643c1057e0a366572421a94ed41
Tested: on Linux.
2016-10-12 16:05:57 -07:00
Wouter van Oortmerssen
c81239f6ea
Fix lambda compilation error in VS.
...
Change-Id: I814008b6eeffec9bd4b8810e4b29db9ea6218bb8
2016-10-12 14:51:02 -07:00
Wouter van Oortmerssen
b830dac266
Added missing generated code files.
...
Change-Id: Ifb977411b65f8721cf9db891d7a62798bd593c0c
2016-10-12 14:40:35 -07:00
Wouter van Oortmerssen
dc38f93ca8
Merge branch 'master' of https://github.com/google/flatbuffers
2016-10-12 14:39:36 -07:00
Wouter van Oortmerssen
f9025eeb52
Clarified tutorial w.r.t reading/writing buffers.
...
Bug: 30736848
Signed-off-by: Wouter van Oortmerssen <wvo@google.com >
2016-10-12 14:30:31 -07:00
Wouter van Oortmerssen
486c048a0d
Added support for size prefixed buffers.
...
These are useful for streaming FlatBuffers. The functionality
ensures proper alignment of the whole buffer.
Tested: on OS X.
Bug: 27123865
Change-Id: Ic7d75a618c1bb470ea44c4dcf202ff71f2b3f4f1
Signed-off-by: Wouter van Oortmerssen <wvo@google.com >
2016-10-12 14:30:31 -07:00
Wouter van Oortmerssen
ab51b03093
Fixed line numbers being off in multi-line comments.
...
Change-Id: I4c27892c249527980d8f52a2cca801dace70289f
2016-10-12 11:22:20 -07:00
Wouter van Oortmerssen
dc2fa215b8
External references for the object API thru a resolver function.
...
This allows hashed string fields to be used for lookup of any
C++ objects, a pointer to which are then stored in the object
besides the original hash for easy access.
Change-Id: I2247a13c349b905f1c54660becde2c818ad23e97
Tested: on Linux.
Bug: 30204449
2016-10-12 11:22:20 -07:00
Baptiste Lepilleur
199157e8f4
flatc java generator: namespace_test2.fbs is missing namespace prefix for referToA2() return type ( #4040 )
...
* Fix flatc generating incorrect java/c# code for namespace_test2.fbs. In code for TableInC, method referToA2() returned type SecondTableInA instead of NamespaceA.SecondTableInA.
* Updated generated code.
* Fixed indendation.
2016-10-07 09:42:29 -07:00
Andrew Hundt
520d68449f
CMake now accepts external toolchain configuration ( #4045 )
...
Resolves #4038
Related to https://github.com/ruslo/hunter/pull/529
2016-10-05 13:20:30 -07:00
jbrads
b075b8c49d
Generate type traits for unions to map a type to the corresponding u… ( #4032 )
...
* Generate type traits for unions to map a type to the corresponding union enum value.
* Fixed break with union enum type traits when type is in a namespace.
* Fixed spacing and variable names in type traits generation to match style guidelines.
* Fixed spacing in type traits generation to match style guidelines.
* Regenerated test schema header.
2016-10-03 14:14:25 -07:00
Wouter van Oortmerssen
f6c1a1ebcf
Merge pull request #4025 from paszea/reflection_fqn
...
serialize fully qualified struct & enum name in schema binary
2016-09-21 11:06:34 -07:00
Wouter van Oortmerssen
c4aede2268
Merge pull request #4027 from kimsin3003/csharp
...
Added IFlatbufferObject.cs file to project for .net.
2016-09-19 10:02:50 -07:00
FTT\kimsin
4a43c2bb2c
Added IFlatbufferObject.cs file to project for .net.
...
Before edition, IFlatbufferObject.cs file wasn't in the project and building the project throwed error.
2016-09-19 16:16:15 +09:00
Jason Sanmiya
b2e55c556e
Merge "Fix Windows warnings." into ub-games-master
2016-09-15 18:42:42 +00:00
Xun Liu
df0991b7de
serialize fully qualified struct & enum name in schema binary
2016-09-15 10:42:23 -07:00
Wouter van Oortmerssen
3368407aff
Add a --conform-includes flag to specify include path for the conform schema
...
(mirrored from cl 133146933)
Change-Id: I61385289728777cae83139fef0229001d92382ca
2016-09-14 11:39:33 -07:00
Wouter van Oortmerssen
25f3f358a0
Merge pull request #4021 from mogemimi/remove-extra-semi
...
Remove extra semicolon
2016-09-14 09:18:40 -07:00
mogemimi
00e8aa87b3
Remove extra semicolon
2016-09-13 20:59:57 +09:00
Wouter van Oortmerssen
09ee46a83e
Merge pull request #4020 from albertofem/feature/allow_public_accessor_net
...
Allow access to underlying ByteBuffer in C#
2016-09-12 10:35:16 -07:00
Alberto Fernández
02dfa64a89
Allow access to underlying ByteBuffer
2016-09-12 09:35:08 +02:00
Wouter van Oortmerssen
f136570417
Merge pull request #4004 from sahiljain/fix-3909
...
Return error when full string cannot be parsed into int
2016-09-09 17:01:05 -07:00
Sahil Jain
b6ba322a04
Return error when full string cannot be parsed into int
2016-09-09 19:47:20 -04:00
Wouter van Oortmerssen
4b79ff5351
Merge pull request #4017 from changnet/master
...
option to build shared library,defeault off
2016-09-09 16:21:27 -07:00
Wouter van Oortmerssen
edd77ae2f3
Merge pull request #4010 from rgilles/master
...
Isolate the complied Java classes into a target folder.
2016-09-09 15:28:37 -07:00
Jason Sanmiya
985de211af
Fix Windows warnings.
...
Cmake issued a warning when the variable is in quotation marks
in an if statement.
Visual Studio upgrades constants to int and issues a truncation
warning, so inserted a cast.
Change-Id: I60cdcb5c2565cd5e97f80b9c2ff1e6abc32b1deb
Tested: Builds without warning on VS2015.
2016-09-09 14:51:33 -07:00
Wouter van Oortmerssen
8e3fa336eb
Merge pull request #3998 from aardappel/master
...
Switched C# accessors from classes to structs
2016-09-07 16:59:42 -07:00
Romain Gilles
582fd90c4a
Use the find -exec instead of find ... | xargs otherwise when there is error log in the output of the build.
2016-09-06 23:28:22 +02:00
changnet
a15659e9f8
option to build shared library,defeault off
2016-09-07 01:12:04 +08:00
Romain Gilles
afd230af8d
Remove commented line. Add a last step that remove the target folder after the build and the tests execution.
2016-09-01 13:01:07 +02:00
Wouter van Oortmerssen
52ca75506a
Switched C# accessors from classes to structs
2016-08-31 17:34:51 -07:00
Romain Gilles
3bb9b839b8
Add remove of remaining class files before running the build
2016-08-30 10:18:47 +02:00
Romain Gilles
5e7bfd0461
Isolate the complied Java classes into a target folder + log java version.
...
It is a common practice to put all the compiled classes into a
dedicated folder in order to:
- avoid to mix the code and the complied classes
- to allow a simple way to remove the complied classes
Add log of java version in order to make it explicit to the end user.
2016-08-29 11:26:31 +02:00
Wouter van Oortmerssen
d05d114523
Merge pull request #4007 from TGIshib/key
...
lookupByKey corrections
2016-08-26 15:26:40 -07:00
TGIshib
722b903f89
Remove languages check
2016-08-27 01:21:15 +03:00
TGIshib
2ff6152204
Update idl_gen_general.cpp
2016-08-27 00:42:06 +03:00
TGIshib
98f9af8ecc
Merge remote-tracking branch 'refs/remotes/google/master' into key
...
# Conflicts:
# src/idl_gen_general.cpp
2016-08-27 00:35:06 +03:00
Wouter van Oortmerssen
481d332e72
Fixed compile error in LookupByKey fix.
...
Change-Id: Ice94f09197235cf71b41a22d0767bd7b119284e1
2016-08-26 14:18:04 -07:00
TGIshib
1a18122e3f
Last idl_gen_general.cpp update
2016-08-27 00:04:25 +03:00
Wouter van Oortmerssen
ee56418cef
Undo compile Java classes into target folder.
...
This was causing class loader errors on Java 1.6.
Change-Id: Id1d9e7e369aad639115664c43a867c4d3a82f9f1
Tested: on Linux.
2016-08-26 14:02:00 -07:00
Wouter van Oortmerssen
e1f8037cb5
Fixed Java LookupByKey functionality for Java 1.6
...
Tested: on Linux.
Change-Id: Iea336f75a3b6e722743563813c3c9ed9db4d02fe
2016-08-26 13:58:16 -07:00
TGIshib
ea9ee4c99e
Update idl_gen_general.cpp
2016-08-26 23:47:23 +03:00