Michael Paulson
d298adc4e6
chore(lint) ( #4079 )
...
* chore(lint)
I accidentally let 2 pieces of lint in with my generated code.
* fix(generate-code): I did not generate all the required code for tests.
2016-11-07 10:27:26 -08:00
benssson
cf0d7829a6
Fixed javascript helper for typed arrays of scalars not taking into ( #4068 )
...
account underlying buffer's byte offset.
2016-10-26 10:29:36 -07:00
Baptiste Lepilleur
5b5fcbfc00
Java: fix unsigned default value code generation and add 'L' suffix for long 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#.
2016-10-21 14:27:15 -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
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
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
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
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
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
Xun Liu
df0991b7de
serialize fully qualified struct & enum name in schema binary
2016-09-15 10:42:23 -07: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
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
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
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
481d332e72
Fixed compile error in LookupByKey fix.
...
Change-Id: Ice94f09197235cf71b41a22d0767bd7b119284e1
2016-08-26 14:18:04 -07: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
Wouter van Oortmerssen
49ee30a207
Merge pull request #3978 from TGIshib/key
...
Find by key on C# and Java (2)
2016-08-26 12:03:28 -07:00
TGIshib
7c69c5dc3d
Fix lookupByKey, improve compareStrings
2016-08-26 19:41:32 +03:00
Romain Gilles
f96eb472b3
Isolate the complied Java classes into a target folder.
...
It is a common practice to put all the compiled classes into a
dedicated folder in order to:
- void to mixing the code and the complied classes
- to allow a simple way to remove the complied classes
2016-08-25 10:40:41 +02:00
Wouter van Oortmerssen
79d127c863
Merge pull request #2133 from evolutional/cs-bounds-check
...
C#: added #define BYTEBUFFER_NO_BOUNDS_CHECK
2016-08-24 09:26:06 -07:00
Wouter van Oortmerssen
96ab6ade5a
Merge pull request #3993 from bhamiltoncx/generate-text-failure
...
Allow GenerateText() to indicate failure to encode flatbuffer to JSON
2016-08-22 11:32:52 -07:00
TGIshib
9f16090f90
Improve LookupByKey , update docs
2016-08-22 18:10:52 +03:00
rw
c4ba502f57
Remove invalid vector item heap alloc
...
Fixes #3986
2016-08-20 20:33:36 -07:00
Ben Hamilton
94d5643f97
Allow GenerateText() to indicate failure to encode flatbuffer to JSON (i.e., non-UTF-8 string data)
2016-08-18 10:23:26 -07:00
Artem Kazakov
726a5f523e
add byte array and unintialized array creation to FlatBufferBuilder
2016-08-16 16:26:53 -04:00
TGIshib
8fdced4e11
Update
2016-08-14 14:58:51 +03:00
TGIshib
9031597f49
Merge remote-tracking branch 'refs/remotes/google/master' into key
2016-08-13 16:28:38 +03:00
Wouter van Oortmerssen
a0b8f669ee
Added "Direct" suffix to vector/string object creation functions.
...
They were overloaded, but also had default arguments, so would
become ambiguous when used with few arguments.
Change-Id: Ifac7f3ea3a6391d971dfeda8e33129c8c38d6f12
Tested: on Linux.
2016-08-12 11:12:12 -07:00
Wouter van Oortmerssen
205ddb175f
Added union namespacing test case.
...
Change-Id: I9a4f90889c311c454a9c19e78c7db3c79800b44e
Tested: on Linux.
2016-08-10 11:52:09 -07:00
Wouter van Oortmerssen
c96fc7fcef
Added missing generated code from previous commits.
...
Change-Id: Ie2f1f65be451979d9f8d4da999b1c10737e867af
2016-08-08 12:18:07 -07:00
Wouter van Oortmerssen
026c6ddb17
Merge branch 'master' of https://github.com/google/flatbuffers
2016-08-08 12:17:10 -07:00
Wouter van Oortmerssen
3eebba789f
Fixed incorrect generated code on convenient vector constructors.
...
Change-Id: Ib283eade157a436e0f3ca0e68d74e7dc6c51c65b
2016-08-08 12:16:10 -07:00
TGIshib
dc7f5bc0d8
Remake
2016-08-03 13:29:50 +03:00
gonzaloserrano
ec20233fab
Make most of the Go code comply with gofmt (except enums).
...
Enums are not fixed because depending on they have comments or not they
will be aligned alogn the asssignment character.
2016-08-02 18:21:47 +02:00
Ben Hamilton
f6416d8471
Validate UTF-8 by default when parsing IDL. Support Unicode values > U+FFFF in parse
2016-08-01 14:05:24 -07:00
Wouter van Oortmerssen
c9b9fd0407
Merge remote-tracking branch 'mbp/mutable-js' into ghfix
2016-07-29 11:32:00 -07:00
Michael Paulson
d268d11ca2
feat(test): Added mutation testing for scalar values.
...
This is a port of the tests found in test.cpp
2016-07-27 13:32:53 -07:00
Michael Paulson
a351124cfd
chore(generate-code): Generate the JS code after mutation has been added.
2016-07-25 20:00:22 -07:00
Kazuki Sakamoto
5f351a35a2
Add EnumNames to Go code
...
Tested: on Darwin
2016-07-25 19:37:16 -07:00