chronoxor
b8224809ad
VS2015 warning "conditional expression is constant" ( #4210 )
...
* VS2015 warning "conditional expression is constant"
* VS2015 warning "conditional expression is constant"
2017-03-08 13:34:38 -08:00
Dale Lukas Peterson
bb22fb5756
Fix broken symlink to CONTRIBUTING.md ( #4212 )
2017-03-08 13:16:11 -08:00
Christian Helmich
ff274771ba
fixed path being ignored in GenerateCppGRPC ( #4207 )
2017-03-08 09:08:40 -08:00
Hadriel Kaplan
15bf626191
Add a backwards-compatible version of VerifyBuffer() ( #4201 )
2017-03-08 08:25:37 -08:00
Zarian Waheed
ac106e835c
Fixing broken link and added missing <map> header include. ( #4199 )
2017-03-03 09:47:52 -08:00
xiaohaoliang
640b525e83
optimization of FlatBufferBuilder::CreateVector() ( #4198 )
...
optimization of FlatBufferBuilder::CreateVector()
1. optimization of FlatBufferBuilder::CreateVector() for "1 == sizeof(T)" ( such as [byte], [ubyte]).
2. For my project, it was about 10x improvement on flatbuffers serialization.
3. why not "string": "string, which may only hold UTF-8 or 7-bit ASCII. For other text encodings or general binary data use vectors ([byte] or [ubyte]) instead."
2017-03-03 09:40:43 -08:00
Raman
0b379211dc
Fixed problem with uint keys ( #4172 )
...
* Fixed problem with uint keys
* removed excess check
* Resolved problem with big uint, ubyte keys in Java
2017-02-28 14:16:50 -08:00
Louis-Paul CORDIER
bb223da258
C++ generator: Pre-allocating std::vector in UnPack methods. ( #4187 )
2017-02-25 22:10:17 -08:00
Andrei Lebedev
17c5f89d4f
Fixed move constructor in generated union class ( #4192 )
...
* Fixed move constructor in generated union class
* Removed delegating constructor
2017-02-25 22:06:48 -08:00
Andrei Lebedev
695d26183a
Remove libc++ and c++abi requirement on Linux with clang ( #4189 )
2017-02-25 21:47:57 -08:00
Kameiha
f5120a2aaf
more safer ( #4186 )
...
push_small(T little_endian_t) => push_small(const T& little_endian_t)
2017-02-25 21:24:43 -08:00
Franken
037314a059
[C++] Additional accessors for fields of union types. ( #4184 )
...
* Additional accessors for fields of union types.
* Reveal the hidden parameter.
* External explicit specializations for templated accessors.
* Changes according to code style. Generated code included as well.
2017-02-25 21:23:32 -08:00
litianzhao
ebcfbbadf0
fix #4180 : Long.prototype.toFloat64() overflow ( #4182 )
2017-02-20 11:20:56 -08:00
Wouter van Oortmerssen
6561c7a31f
Temporarily disabled VS2010 warning 4512.
...
Change-Id: Ib75b4cc651ac8f67cd262c8293fca1ac590f6b71
2017-02-15 17:46:00 -08:00
Wouter van Oortmerssen
a6d98fb067
Fixed VS x64 warnings in flexbuffers.h
2017-02-15 17:41:00 -08:00
Wouter van Oortmerssen
3a2d3a232f
Removed spurious "aa" from flatc usage message.
...
Change-Id: Ia1812d594882ce6c51002d07827ccec267d138bb
2017-02-15 14:59:25 -08:00
Wouter van Oortmerssen
cebdad4d23
Updated version numbers to 1.6
...
Change-Id: I215fcc7581253f14171b513d4fc75da960b2064a
v1.6.0
2017-02-15 14:36:51 -08:00
Sahil Jain
d798100be9
Round vector_downward initial size up ( #4179 )
2017-02-15 11:42:01 -08:00
Wouter van Oortmerssen
1fb6b9ee6f
Added doc comments to the binary schema.
...
Change-Id: I87f291ab6e07b1425850cae25ed500db594f17c8
Tested: on Linux.
2017-02-13 16:47:17 -08:00
Wouter van Oortmerssen
2d6e8f096b
Fixed sorting assertion with some std::sort implementations.
...
Change-Id: Idd925c9cc5cd2a35e06f4d832734180f5c38378e
Tested: on Linux.
2017-02-13 09:50:35 -08:00
Shintaro Abe
ec8038cc3d
JS: add package.json to publish the npm pacakge ( #4166 )
...
* JS: add package.json to publish the npm pacakge
* JS: update package.json to set version and author
2017-02-10 14:19:11 -08:00
Wouter van Oortmerssen
2df3d1c965
Added missing generated code.
...
Change-Id: If3d2e11627b6d08bc6433941208ead577aa0e3b9
2017-02-10 13:28:15 -08:00
Wouter van Oortmerssen
2272229983
Added --prefix-include option for generated includes.
...
Change-Id: I288cda33345362f9aec5cbe309e590bf64f328e1
Tested: on Linux.
2017-02-10 13:24:54 -08:00
水樹素子
b7bfecb4ee
Add move constructor to generated union class. ( #4167 )
...
* Add move constructor to generated union class.
* Unused default
* Add generated code
2017-02-10 10:32:34 -08:00
sjoblom65
c7c4bbfce2
Error C2668: 'Service::Version2::CreateServiceValues' : ambiguous call to overloaded function ( #4161 )
...
* Update idl_gen_cpp.cpp
Fix for: error C2668: 'Service::Version2::CreateServiceValues' : ambiguous call to overloaded function #4145
* Update idl_gen_cpp.cpp
Also needed the same change in the getPostTable
* Add files via upload
New generation from running generate_test.bat
* Add files via upload
Lets try this without added line feeds
* Added a test for a potential "ambiguous call to overloaded function"
* Change to a better name of the table.
Didn't like the Service in the name.
* Reverted back to the original
2017-02-10 10:25:11 -08:00
Wouter van Oortmerssen
d7ba17dfe5
Changes to make flatbuffers javascript compatible with the closure compiler.
...
Change-Id: Iab8d66a8f34910029deb8a5ff5ec7ba50c5b3421
2017-02-08 17:14:35 -08:00
Wouter van Oortmerssen
60b11435e6
Fixed missing '
...
Change-Id: I25110bbb171a27626ec6416b810399069d590279
2017-02-08 17:04:44 -08:00
Wouter van Oortmerssen
ed2110d7b3
Fixed link to Google C++ Style Guide.
...
Change-Id: Ifb955f3daefedae2cb9930a365c4c7e0641776b4
2017-02-08 16:37:25 -08:00
Wouter van Oortmerssen
a9514de978
Fixed vector test on Windows
2017-02-08 15:59:52 -08:00
Wouter van Oortmerssen
c57ab92e60
Fixes for Windows compiler errors.
...
Change-Id: I909ea6866089f36f9cb79d435bbecd29623fd8f7
2017-02-08 15:38:18 -08:00
Wouter van Oortmerssen
f878024d0b
Fixed the Android build.
...
Change-Id: Iabb9448b4f161bba465d455c28bb826529649d30
Tested: on Android.
2017-02-08 15:13:57 -08:00
Wouter van Oortmerssen
aac6be1153
First attempt at SchemaLess FlatBuffers.
...
Change-Id: I86b9d002f3441ef9efdb70e059b8530ab2d74bb8
Tested: on Linux.
2017-02-08 15:13:56 -08:00
Wouter van Oortmerssen
dabe030890
Added PULL_REQUEST_TEMPLATE.md
...
Change-Id: Iad9c09434f87219e384b294d6221f4cac7a839eb
2017-02-08 10:15:26 -08:00
Wouter van Oortmerssen
29574282a2
JSON parser wasn't handling ulong values correctly.
...
It passed all scalar ints thru a int64_t, which would truncate
uint64_t values with the upper bit set.
Change-Id: I38fb8c68c911ae44d9863f8e35c2429ca0ab51e5
Tested: on Linux.
2017-02-01 14:18:28 -08:00
Benjamin Lerman
2dd6ba57d1
Add utility method to build a vector of struct in-place. ( #4153 )
...
Change-Id: I6df195cbae621cf2bf6b4f3b56f68be80dc23152
2017-02-01 09:22:56 -08:00
Wouter van Oortmerssen
6cc2307c71
Remove max_message_size arg, which is not passed to Deserialize func.
...
Change-Id: Icc7b4c1cf626f49d0529ff4f66503ea8381bf67c
2017-01-30 14:54:51 -08:00
Wouter van Oortmerssen
74c8c7137a
A bug fix to the union vector feature in FlatBuffers.
...
Change-Id: I302245969f6ec2443572799732fce2aa7c071879
2017-01-30 14:02:40 -08:00
Wouter van Oortmerssen
f9055ff9a7
Merge branch 'master' of https://github.com/google/flatbuffers
2017-01-27 15:30:27 -08:00
Wouter van Oortmerssen
9b3d8b318a
Added tracking of order of types declared.
...
Change-Id: Iade313c99f119dcf1619674260648a33f61dc030
2017-01-27 15:30:08 -08:00
Wouter van Oortmerssen
87e29b25de
Some small speed optimizations to the core copying functions.
...
Change-Id: Id8c1afb84f4ab0e2edca4290e3de5589fa06e578
Tested: on Linux.
2017-01-27 11:26:35 -08:00
Robert
f7bc9bd51b
Merge pull request #4146 from zchee/go-test-fix_struct
...
go: fix unknown field 'UOffset' to 'Pos'
2017-01-26 20:45:49 -08:00
Wouter van Oortmerssen
3dee617c86
Fix unused variable build warning on Mac.
...
Change-Id: I330187be6a96bfd388c2776f676d47a9145d5e4a
2017-01-25 14:39:14 -08:00
Wouter van Oortmerssen
2fb25e2bb3
Moved union vector test to file dependent section.
...
Change-Id: I3a1fcf167eb0d0a51ef838e54246ef867e752218
2017-01-25 14:09:18 -08:00
Wouter van Oortmerssen
b395359b6e
Allow the flatbuffer compiler (flatc) to be built as a library.
...
Change-Id: I71baff427243f96be1596b01ff3405fdf39386d7
2017-01-25 13:41:34 -08:00
gbeili
fd61d70205
minor fixes to the union vector code styles ( #4149 )
2017-01-25 09:34:37 -08:00
jsanmiya
4f4495a693
Merge pull request #4148 from gbeili/vector_unions
...
C++ Union Vector
2017-01-24 14:33:32 -08:00
Bei Li
68bbe983e9
Union Vector
2017-01-24 11:52:36 -08:00
Florin Pățan
bbef92c17d
Reword comment so that code editors can mark deprecation correctly ( #4147 )
2017-01-23 13:40:50 -08:00
Koichi Shiraishi
25c884158f
go: fix unknown field 'UOffset' to 'Pos'
...
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com >
2017-01-22 20:16:52 +09:00
Wouter van Oortmerssen
3f936c5655
More native code gen functionality.
...
Allow tables to be mapped to native types directly. For example, a table
representing a vector3 (eg. table Vec3 { x:float; y:float; z:float; }) can
be mapped to a "mathfu::vec3" native type in NativeTables. This requires
users to provide Pack and UnPack functions that convert between the
Table and native types. This is done by adding the "native_type" attribute
to the table definition.
To support user-defined flatbuffers::Pack and flatbuffers::UnPack functions,
support a "native_include" markup that will generate a corresponding
Also add an UnPackTo function which allows users to pass in a pointer to
a NativeTable object into which to UnPack the Table. The existing UnPack
function is now simply:
NativeTable* UnPack() {
NativeTable* obj = new NativeTable();
Table::UnPackTo(obj);
return obj;
}
Finally, allow native types to be given a default value as well which are
set in the NativeTable constructor. This is done by providing a
"native_default" attribute to the member of a table.
Change-Id: Ic45cb48b0e6d7cfa5734b24819e54aa96d847cfd
2017-01-18 16:23:35 -08:00