platform/upstream/flatbuffers.git
8 years agoStop CreateUninitializedVector returning a pointer to invalid memory.
Nnamdi [Wed, 13 Apr 2016 22:04:27 +0000 (23:04 +0100)]
Stop CreateUninitializedVector returning a pointer to invalid memory.

CreateUninitializedVector was performing the following actions:
    1. call StartVector.
    2. call make_space, and set buf to point to the reserved space.
    3. call EndVector.

The problem is that a call to EndVector can ultimately call make_space, which
if the buffer is full, will cause a reallocation, invalidating the value stored
in buf.  So setting buf needs to be delayed until after EndVector.

The following code, when run under valgrind shows a write to free'd memory before
the change, but no such error after:

int main()
{
    flatbuffers::FlatBufferBuilder fbb(128);
    char *buf = nullptr;
    fbb.CreateUninitializedVector(128, &buf);
    *buf = 0;
}

8 years agoFixed struct -> class pre-declaration error.
Wouter van Oortmerssen [Wed, 13 Apr 2016 19:02:22 +0000 (12:02 -0700)]
Fixed struct -> class pre-declaration error.

Change-Id: I3730a6823d603982c4250d514e827e3f93d1f81e
Tested: on Linux.

8 years agoMade user-defined attributes available in the reflection data.
Wouter van Oortmerssen [Tue, 12 Apr 2016 00:36:56 +0000 (17:36 -0700)]
Made user-defined attributes available in the reflection data.

Tested: on Linux.

Bug: 27923233
Change-Id: Ic16675650e4a8e138c163f1e2131a3aad7008ada

8 years agoMerge branch 'master' of https://github.com/google/flatbuffers
Wouter van Oortmerssen [Mon, 11 Apr 2016 20:48:57 +0000 (13:48 -0700)]
Merge branch 'master' of https://github.com/google/flatbuffers

8 years agoFixed JSON integers as strings not being parsed correctly.
Wouter van Oortmerssen [Mon, 11 Apr 2016 18:08:09 +0000 (11:08 -0700)]
Fixed JSON integers as strings not being parsed correctly.

Change-Id: If34aef46ef619e06de799cff14948b02e98da86d
Tested: on Linux.

8 years agoFixed pre-declarations of included types in generated code.
Wouter van Oortmerssen [Mon, 11 Apr 2016 18:05:42 +0000 (11:05 -0700)]
Fixed pre-declarations of included types in generated code.

This was harmless, but unnecessary.

Change-Id: I1365a725e254d4ebbda081110a50277cb5118323
Tested: on Linux.

8 years agoMerge pull request #3789 from Chippiewill/master
Wouter van Oortmerssen [Fri, 8 Apr 2016 18:32:16 +0000 (11:32 -0700)]
Merge pull request #3789 from Chippiewill/master

Allow builds on platforms with unsigned chars by default

8 years agoMerge pull request #3839 from klapek/net/bytebuffer-assert-optimization
Wouter van Oortmerssen [Fri, 8 Apr 2016 18:18:58 +0000 (11:18 -0700)]
Merge pull request #3839 from klapek/net/bytebuffer-assert-optimization

Remove unnecessary condition in AssertOffsetAndLength.

8 years agoRemove unnecessary condition in AssertOffsetAndLength.
Wojciech Jaszczak [Fri, 8 Apr 2016 17:56:02 +0000 (19:56 +0200)]
Remove unnecessary condition in AssertOffsetAndLength.

Condition is already checked and covered in the following condition, the second one was excess.

Signed-off-by: Wojciech Jaszczak <jaszczakw@gmail.com>
8 years agoMerge pull request #3832 from mikkelfj/c_docs
Wouter van Oortmerssen [Fri, 8 Apr 2016 17:54:27 +0000 (10:54 -0700)]
Merge pull request #3832 from mikkelfj/c_docs

Documentation for C bindings

8 years agoUpdate C documentation with supported MSVC versions, and other minor updates.
Mikkel Fahnøe Jørgensen [Thu, 7 Apr 2016 16:52:00 +0000 (18:52 +0200)]
Update C documentation with supported MSVC versions, and other minor updates.

8 years agoAdded missing util.cpp to VS project
Wouter van Oortmerssen [Tue, 5 Apr 2016 00:01:21 +0000 (17:01 -0700)]
Added missing util.cpp to VS project

8 years agoAdding missing util.cpp to Xcode project
Wouter van Oortmerssen [Tue, 5 Apr 2016 00:07:05 +0000 (17:07 -0700)]
Adding missing util.cpp to Xcode project

8 years agoMerge branch 'master' of https://github.com/google/flatbuffers
Wouter van Oortmerssen [Mon, 4 Apr 2016 23:55:25 +0000 (16:55 -0700)]
Merge branch 'master' of https://github.com/google/flatbuffers

8 years agoMerge pull request #3836 from tkelman/cygwinbuild
Wouter van Oortmerssen [Mon, 4 Apr 2016 22:38:32 +0000 (15:38 -0700)]
Merge pull request #3836 from tkelman/cygwinbuild

Fix build on Cygwin

8 years agoadd setloadfile and setfileexists functions to flatbuffers
Wouter van Oortmerssen [Thu, 31 Mar 2016 00:34:52 +0000 (17:34 -0700)]
add setloadfile and setfileexists functions to flatbuffers

to allow for custom file loaders. The targeted use case is android runtime.

(from CL 116980408)

Change-Id: I8785c0acf714fab41d8f6fc9f1c52875423b8f5b

8 years agoFix flatbuffers conversion warnings.
Wouter van Oortmerssen [Thu, 31 Mar 2016 00:26:44 +0000 (17:26 -0700)]
Fix flatbuffers conversion warnings.

(from CL 116785833)

Change-Id: I0fb0e1318fd70cba51e229a93f535c6639bbb331

8 years agoFix flatc build for msvc.
Wouter van Oortmerssen [Thu, 31 Mar 2016 00:21:48 +0000 (17:21 -0700)]
Fix flatc build for msvc.

(from CL 117010760)

Change-Id: I0ee77cf87d0cb00b94887356745b85423b1375a6

8 years agoFixed potential integer overflow in the Verifier.
Wouter van Oortmerssen [Thu, 31 Mar 2016 00:00:49 +0000 (17:00 -0700)]
Fixed potential integer overflow in the Verifier.

This overflow could allow malformed FlatBuffers to pass the verifier.

Change-Id: Ia993299a761b00b93e53e8aff2689b631755763c
Tested: on Linux.
Bug: 27903580

8 years agoFixed VS assignment constructor warning.
Wouter van Oortmerssen [Mon, 4 Apr 2016 20:00:48 +0000 (13:00 -0700)]
Fixed VS assignment constructor warning.

8 years agoRemove details on FlatCC builds that would easily become outdated
Mikkel Fahnøe Jørgensen [Mon, 4 Apr 2016 14:33:20 +0000 (16:33 +0200)]
Remove details on FlatCC builds that would easily become outdated

8 years agoDocument FlatCC support for Windows
Mikkel Fahnøe Jørgensen [Sun, 3 Apr 2016 19:37:57 +0000 (21:37 +0200)]
Document FlatCC support for Windows

8 years agoFix build on Cygwin
Tony Kelman [Sat, 2 Apr 2016 04:42:23 +0000 (21:42 -0700)]
Fix build on Cygwin

use -std=gnu++11 instead of c++0x on cygwin to avoid
error: realpath was not declared in this scope

ref http://www.cygwin.com/ml/cygwin/2016-03/msg00005.html

8 years agoMerge pull request #3816 from armen/master
Wouter van Oortmerssen [Wed, 30 Mar 2016 21:04:36 +0000 (14:04 -0700)]
Merge pull request #3816 from armen/master

Implement __vector_as_bytes and methods to get [ubyte] efficiently

8 years agoMerge pull request #3834 from Nnamdi/gen_name_strings
Wouter van Oortmerssen [Wed, 30 Mar 2016 20:14:49 +0000 (13:14 -0700)]
Merge pull request #3834 from Nnamdi/gen_name_strings

Added --gen-name-strings command line option.

8 years agoAdded --gen-name-strings command line option.
Nnamdi [Tue, 29 Mar 2016 21:25:04 +0000 (22:25 +0100)]
Added --gen-name-strings command line option.

To support the use case described in issue google/flatbuffers#3826, a new command line option --gen-name-strings
has been added, which will cause a static GetFullyQualifiedName function to be added
to the C++ output for tables/structs.

8 years agoImplement __vector_as_bytes and methods to get [ubyte] efficiently
Armen Baghumian [Mon, 14 Mar 2016 06:37:22 +0000 (17:37 +1100)]
Implement __vector_as_bytes and methods to get [ubyte] efficiently

Currently in order to get a value type of [ubyte] in PHP, iteration is
necessary which is not efficient. Helper __vector_as_bytes has been
implemented in order to return the byte arrays in PHP efficiently.

Appropriate methods also been added to use aforementioned method to return
the byte array. (e.g. get*Bytes()).

The reason the methods are named get*Bytes() and not for instance
get*ByteArray() is the fact that PHP doesn't support byte arrays and the
binary safe string implementation in PHP is used to simulate byte arrays
and since there is chance for PHP users to confuse this with PHP arrays
the name get*Bytes() has been chosen.

In the future __vector_as_bytebuffer() method can also be implemented to
return PHP implementation of ByteBuffer.

8 years agoMove some C specifics out of tutorial and clarify platform support
Mikkel Fahnøe Jørgensen [Mon, 28 Mar 2016 20:52:10 +0000 (22:52 +0200)]
Move some C specifics out of tutorial and clarify platform support

8 years agoAdd C support in README, minor updates in other C doc
Mikkel Fahnøe Jørgensen [Sat, 26 Mar 2016 08:22:56 +0000 (09:22 +0100)]
Add C support in README, minor updates in other C doc

8 years agoDocumentation for C bindings
Mikkel Fahnøe Jørgensen [Fri, 25 Mar 2016 23:28:31 +0000 (00:28 +0100)]
Documentation for C bindings

8 years agoMerge pull request #3822 from cage433/tutorial-java-type-error
Wouter van Oortmerssen [Wed, 23 Mar 2016 19:45:24 +0000 (12:45 -0700)]
Merge pull request #3822 from cage433/tutorial-java-type-error

Tutorial's Java example uses incorrect types

8 years agoTutorial's Java example uses incorrect types
Alex McGuire [Sun, 20 Mar 2016 12:55:05 +0000 (12:55 +0000)]
Tutorial's Java example uses incorrect types

`FlatBufferBuilder.createString` returns an int offset, not a string

8 years agoAllow builds on platforms with unsigned chars by default
Will Gardner [Mon, 29 Feb 2016 17:28:40 +0000 (17:28 +0000)]
Allow builds on platforms with unsigned chars by default

Certain architectures, such as ARM, use unsigned chars by default
so require the `-fsigned-char` for certain value comparisons to
make sense and in order to compile.

8 years agoAdded stream & idempotent annotations for RPCs.
Wouter van Oortmerssen [Wed, 9 Mar 2016 23:03:05 +0000 (15:03 -0800)]
Added stream & idempotent annotations for RPCs.

Change-Id: Ia8651c1051808fdda0dc0ba52ec991777f868e88
Tested: on Linux.

8 years agoAdded RPC declarations to the schema parser.
Wouter van Oortmerssen [Tue, 8 Mar 2016 02:07:10 +0000 (18:07 -0800)]
Added RPC declarations to the schema parser.

This is the first step in RPC support. Actual code generation
to follow.

Change-Id: I96c40fec3db671d100dd9eb509a71c5cbe55bfb2
Tested: on Linux.
Bug: 20122696

8 years agoMerge pull request #3805 from artiom/patch-1
Wouter van Oortmerssen [Wed, 9 Mar 2016 17:58:51 +0000 (09:58 -0800)]
Merge pull request #3805 from artiom/patch-1

Update google user group link

8 years agoUpdate google user group link
artiom [Tue, 8 Mar 2016 23:57:12 +0000 (23:57 +0000)]
Update google user group link

Original link returns 404.

8 years agoAllow JSON numeric fields to be specified by a numeric data in a string.
Wouter van Oortmerssen [Tue, 8 Mar 2016 01:22:51 +0000 (17:22 -0800)]
Allow JSON numeric fields to be specified by a numeric data in a string.

Change-Id: I6a3fae1e71434a7384edc39b8602bd84a0432edb
Tested: on Linux.
Bug: 24140897

8 years agoMerge branch 'master' of https://github.com/google/flatbuffers
Wouter van Oortmerssen [Mon, 7 Mar 2016 23:04:18 +0000 (15:04 -0800)]
Merge branch 'master' of https://github.com/google/flatbuffers

8 years agoFixed Java pom.xml file still having wrong version number.
Wouter van Oortmerssen [Mon, 7 Mar 2016 22:15:01 +0000 (14:15 -0800)]
Fixed Java pom.xml file still having wrong version number.

Change-Id: I95bc50ecd3b49d91fb81477a8818e3c1f253ff77

8 years agoMoved the build dir to build_ide to not clash with BUILD files.
Wouter van Oortmerssen [Thu, 3 Mar 2016 00:29:46 +0000 (16:29 -0800)]
Moved the build dir to build_ide to not clash with BUILD files.

Change-Id: I9576e130142acc697fadbfb6aacfd5969f25866a
Tested: on Windows.
Bug: 27426239

8 years agoAdded support for easy string pooling.
Wouter van Oortmerssen [Mon, 29 Feb 2016 23:47:46 +0000 (15:47 -0800)]
Added support for easy string pooling.

Change-Id: I790cf681c1bffff800d77afb0e2f908d1c827679
Tested: on Linux.
Bug: 26186542

8 years agoClarified how to test for the presence of fields.
Wouter van Oortmerssen [Mon, 29 Feb 2016 22:31:06 +0000 (14:31 -0800)]
Clarified how to test for the presence of fields.

This is FAQ on the issue tracker.

Bug: 26863353
Change-Id: I227e10a5c0134dbe7fd7f59e64cd57a0752c568e

8 years agoMerge pull request #3793 from yurivict/master
Wouter van Oortmerssen [Thu, 3 Mar 2016 01:46:30 +0000 (17:46 -0800)]
Merge pull request #3793 from yurivict/master

Fixed missing -lc++abi on FreeBSD.

8 years agoFixed missing -lc++abi on FreeBSD.
Yuri [Thu, 3 Mar 2016 01:15:42 +0000 (17:15 -0800)]
Fixed missing -lc++abi on FreeBSD.

8 years agoMerge pull request #3788 from franc0is/layout-typo
Wouter van Oortmerssen [Fri, 26 Feb 2016 18:14:39 +0000 (10:14 -0800)]
Merge pull request #3788 from franc0is/layout-typo

Fix small typo in documentation navigation

8 years agoMerge pull request #3765 from Mischanix/js-typed-arrays
Wouter van Oortmerssen [Fri, 26 Feb 2016 17:51:50 +0000 (09:51 -0800)]
Merge pull request #3765 from Mischanix/js-typed-arrays

Javascript helper to get typed array views

8 years agoMerge pull request #3784 from evanw/fix-for-3773
Wouter van Oortmerssen [Fri, 26 Feb 2016 17:37:55 +0000 (09:37 -0800)]
Merge pull request #3784 from evanw/fix-for-3773

Fix #3773: Generated JS now avoids the flatbuffers object

8 years agoRemove erroneous extra character
François Baldassari [Fri, 26 Feb 2016 17:03:22 +0000 (09:03 -0800)]
Remove erroneous extra character

8 years agoFix typo in documentation navigation
François Baldassari [Fri, 26 Feb 2016 17:00:46 +0000 (09:00 -0800)]
Fix typo in documentation navigation

8 years agoFix #3773: Generated JS now avoids the flatbuffers object
Evan Wallace [Thu, 25 Feb 2016 09:06:16 +0000 (01:06 -0800)]
Fix #3773: Generated JS now avoids the flatbuffers object

8 years agoMerge pull request #3776 from ncpenke/fix-bug-skipping-unknown-fields
Wouter van Oortmerssen [Mon, 22 Feb 2016 21:38:14 +0000 (13:38 -0800)]
Merge pull request #3776 from ncpenke/fix-bug-skipping-unknown-fields

Fix bug skipping unknown fields

8 years agoFix #3775: Skip unknown field names if they're quoted
Nalinichandra Penke [Mon, 22 Feb 2016 20:27:08 +0000 (14:27 -0600)]
Fix #3775: Skip unknown field names if they're quoted

8 years agoMerge pull request #4 from google/master
ncpenke [Mon, 22 Feb 2016 20:34:05 +0000 (14:34 -0600)]
Merge pull request #4 from google/master

Catchup

8 years agoDisabled broken biicode builds on Travis for the moment.
Wouter van Oortmerssen [Mon, 22 Feb 2016 19:33:14 +0000 (11:33 -0800)]
Disabled broken biicode builds on Travis for the moment.

Change-Id: I834e6da091ea704a3fe599a5b99f338d29cd3bf1

8 years agoMerge branch 'master' of https://github.com/google/flatbuffers
Wouter van Oortmerssen [Wed, 17 Feb 2016 21:29:34 +0000 (13:29 -0800)]
Merge branch 'master' of https://github.com/google/flatbuffers

8 years agoFixed namespace code generation for C++
Wouter van Oortmerssen [Sat, 13 Feb 2016 00:20:33 +0000 (16:20 -0800)]
Fixed namespace code generation for C++

The code generator was assuming all declarations for the current
file sit in the same namepace. Now uses the "on demand" namespace
switching we had for the forward declarations.

Also fixed a bug related to namespace lookup.

Change-Id: Ib54a3efbc752cbb9590302fa0707c0c73448db3d
Tested: on Linux.

8 years agoAdd helper for javascript typed arrays
Robert Nix [Fri, 12 Feb 2016 18:27:28 +0000 (12:27 -0600)]
Add helper for javascript typed arrays

For scalar vector fields, emit an Array helper that
returns a typed array view of the underlying bytes buffer.

8 years agoFix javascript unicode test
Robert Nix [Fri, 12 Feb 2016 18:12:54 +0000 (12:12 -0600)]
Fix javascript unicode test

The generated buffer should be tested for semantic equivalence
to the correct buffer, instead of being tested for bytewise
equality.

8 years agoMerge pull request #3761 from msb-at-yahoo/fix-gcc-4.4-build
Wouter van Oortmerssen [Thu, 11 Feb 2016 00:13:59 +0000 (16:13 -0800)]
Merge pull request #3761 from msb-at-yahoo/fix-gcc-4.4-build

fix gcc-4.4 build: -Werror=unused-result is not supported

8 years agofix gcc-4.4 build: -Werror=unused-result is not supported
maurice barnum [Thu, 11 Feb 2016 00:03:53 +0000 (00:03 +0000)]
fix gcc-4.4 build: -Werror=unused-result is not supported

8 years agoMerge branch 'master' of https://github.com/google/flatbuffers
Wouter van Oortmerssen [Wed, 10 Feb 2016 21:51:10 +0000 (13:51 -0800)]
Merge branch 'master' of https://github.com/google/flatbuffers

8 years agoFixed enum declaration values being parsed as int.
Wouter van Oortmerssen [Wed, 10 Feb 2016 19:25:31 +0000 (11:25 -0800)]
Fixed enum declaration values being parsed as int.

This caused values in the uint range to be made negative values.

Change-Id: Ia4284747f48508b589c034ff3aae0d141e96eb3c
Tested: on Linux.

8 years agoMerge pull request #3760 from rw/python-remove-ctypes-dependency
Wouter van Oortmerssen [Mon, 8 Feb 2016 22:35:45 +0000 (14:35 -0800)]
Merge pull request #3760 from rw/python-remove-ctypes-dependency

Python: remove ctypes dependency in runtime library.

8 years agoPython: remove ctypes dependency in runtime library.
rw [Mon, 8 Feb 2016 22:15:02 +0000 (14:15 -0800)]
Python: remove ctypes dependency in runtime library.

8 years agoBumped version to 1.3.0 v1.3.0
Wouter van Oortmerssen [Wed, 3 Feb 2016 18:52:33 +0000 (10:52 -0800)]
Bumped version to 1.3.0

Change-Id: I080041e533153b2bb2db53f030761852e95c88fa

8 years agoMerge pull request #3749 from escholtz/flatc-version
Wouter van Oortmerssen [Wed, 3 Feb 2016 18:03:40 +0000 (10:03 -0800)]
Merge pull request #3749 from escholtz/flatc-version

Add -v --version arg support to the flatc command.

8 years agoRemove -v as option for printing version # (based on PR feedback).
Eddie Scholtz [Mon, 1 Feb 2016 21:54:09 +0000 (13:54 -0800)]
Remove -v as option for printing version # (based on PR feedback).

8 years agoAdd __DATE__ to FLATC_VERSION based on PR feedback.
Eddie Scholtz [Mon, 1 Feb 2016 21:43:05 +0000 (13:43 -0800)]
Add __DATE__ to FLATC_VERSION based on PR feedback.

8 years agoMerge pull request #3739 from Mandar-Shinde/master
Wouter van Oortmerssen [Mon, 1 Feb 2016 19:33:44 +0000 (11:33 -0800)]
Merge pull request #3739 from Mandar-Shinde/master

Update readme.md for github

8 years agoUpdated text in section "Supported programming languages"
Mandar [Mon, 1 Feb 2016 18:48:00 +0000 (00:18 +0530)]
Updated text in section "Supported programming languages"

8 years agoAdd -v --version arg support to the flatc command.
Eddie Scholtz [Fri, 29 Jan 2016 23:01:54 +0000 (15:01 -0800)]
Add -v --version arg support to the flatc command.

8 years agoMerge pull request #3742 from evolutional/cs-partial
Wouter van Oortmerssen [Thu, 28 Jan 2016 00:18:21 +0000 (16:18 -0800)]
Merge pull request #3742 from evolutional/cs-partial

Added support for C# partial class generation using attribute

8 years agoUpdate readme.md
Mandar [Fri, 22 Jan 2016 16:57:47 +0000 (22:27 +0530)]
Update readme.md

8 years agoAdded support for C# partial class generation when the `csharp_partial` attribute...
Oli Wilkinson [Thu, 21 Jan 2016 15:30:13 +0000 (15:30 +0000)]
Added support for C# partial class generation when the `csharp_partial` attribute is used on a table/struct.

8 years agoMerge branch 'master' of https://github.com/google/flatbuffers
Wouter van Oortmerssen [Thu, 21 Jan 2016 02:11:51 +0000 (18:11 -0800)]
Merge branch 'master' of https://github.com/google/flatbuffers

8 years agoRe-Added accidentally deleted sample generated file.
Wouter van Oortmerssen [Thu, 21 Jan 2016 02:09:53 +0000 (18:09 -0800)]
Re-Added accidentally deleted sample generated file.

Change-Id: Ie3b31719f7b133ec4aea64f00f2029566558cb18
Tested: Linux.

8 years agoMerge pull request #3735 from evolutional/vs2010-buildfix
Wouter van Oortmerssen [Wed, 20 Jan 2016 21:49:40 +0000 (13:49 -0800)]
Merge pull request #3735 from evolutional/vs2010-buildfix

Buildfix for VS2010

8 years agoMerge pull request #3734 from evolutional/cs-forcedefaults
Wouter van Oortmerssen [Wed, 20 Jan 2016 21:46:49 +0000 (13:46 -0800)]
Merge pull request #3734 from evolutional/cs-forcedefaults

Implemented ForceDefaults option on C# FlatBufferBuilder.

8 years agoMerge pull request #3729 from fichter/master
Wouter van Oortmerssen [Wed, 20 Jan 2016 21:35:25 +0000 (13:35 -0800)]
Merge pull request #3729 from fichter/master

Fix build error when flatc binary is missing in path.

8 years agoMerge branch 'master' of https://github.com/google/flatbuffers
Wouter van Oortmerssen [Wed, 20 Jan 2016 21:30:09 +0000 (13:30 -0800)]
Merge branch 'master' of https://github.com/google/flatbuffers

8 years agoFixed Python unit test breakage.
Wouter van Oortmerssen [Wed, 20 Jan 2016 21:04:03 +0000 (13:04 -0800)]
Fixed Python unit test breakage.

Test was testing for a field to be None, even though it is populated
in one particular instance.

Change-Id: Id19848d01498d4c0a684efdb2bf49ff12c5b6758
Tested: on Linux.

8 years agoDisabled assignment operator of TableKeyComparator; was causing warning C4512 on...
Oli Wilkinson [Wed, 20 Jan 2016 18:44:44 +0000 (18:44 +0000)]
Disabled assignment operator of TableKeyComparator; was causing warning C4512 on VS2010 and thus causing the build to fail.

8 years agoImplemented ForceDefaults option on C# FlatBufferBuilder.
Oli Wilkinson [Wed, 20 Jan 2016 17:15:29 +0000 (17:15 +0000)]
Implemented ForceDefaults option on C# FlatBufferBuilder.

Tested on: Windows, Unit Tests

8 years agoMerge pull request #3707 from evolutional/vs-gitignore
Wouter van Oortmerssen [Wed, 20 Jan 2016 02:01:34 +0000 (18:01 -0800)]
Merge pull request #3707 from evolutional/vs-gitignore

Added Visual Studio transient files to .gitignore

8 years agoMerge pull request #3491 from faizanrashid/master
Robert [Wed, 20 Jan 2016 01:56:26 +0000 (17:56 -0800)]
Merge pull request #3491 from faizanrashid/master

[BUG FIX] [MINOR] Fix encoding with unicode characters.

8 years agoMerge branch 'master' of https://github.com/google/flatbuffers
Wouter van Oortmerssen [Tue, 19 Jan 2016 23:56:26 +0000 (15:56 -0800)]
Merge branch 'master' of https://github.com/google/flatbuffers

8 years agoMerge pull request #3510 from jaakristioja/patch-1
Wouter van Oortmerssen [Tue, 19 Jan 2016 23:36:45 +0000 (15:36 -0800)]
Merge pull request #3510 from jaakristioja/patch-1

Fixed comment typo

8 years agoSilenced unused variable warnings.
Mark Klara [Tue, 19 Jan 2016 23:27:47 +0000 (15:27 -0800)]
Silenced unused variable warnings.

When built for release, builds were failing with unused
variable warnings, since they were only used in `assert()`
calls.

I added explicit void casting to any potentially unused variables.

Change-Id: I9947ba46891fdda5aa925caa950642dedd4e009f

8 years agoRevamping the FlatBuffers docs.
Mark Klara [Fri, 4 Dec 2015 04:30:54 +0000 (20:30 -0800)]
Revamping the FlatBuffers docs.

Adding an API reference for the supported languages.

General docs cleanup, including a new `tutorial` section that
supports all of the supported languages.

Added samples for each supported language to mirror the new
tutorial page.

Cleaned up all the links by making them `@ref` style links,
instead of referencing the names of the generated `.html` files.

Removed all generated files that were unnecessarily committed.

Also fixed the C# tests (two were failing due to a missing file).

Bug: b/25801305

Tested: Tested all samples on Ubuntu, Mac, and Android. Docs were
generated using doxygen and viewed on Chrome.

Change-Id: I2acaba6e332a15ae2deff5f26a4a25da7bd2c954

8 years agoMerge branch 'master' of https://github.com/google/flatbuffers
Wouter van Oortmerssen [Tue, 19 Jan 2016 22:10:49 +0000 (14:10 -0800)]
Merge branch 'master' of https://github.com/google/flatbuffers

8 years agoAdded support for parsing JSON null value.
Wouter van Oortmerssen [Fri, 8 Jan 2016 23:18:51 +0000 (15:18 -0800)]
Added support for parsing JSON null value.

These cause the field in question to be skipped.

Bug: 16550393
Change-Id: Id05104e89818ee773b8a91fdcc86e18061b9a82f
Tested: on Linux.

8 years agoAdded min/max values for enums/unions.
Wouter van Oortmerssen [Fri, 8 Jan 2016 22:31:26 +0000 (14:31 -0800)]
Added min/max values for enums/unions.

Bug: 21642898
Change-Id: Ifaf0b3c4274fe30ef29507ba1c1216d700efe85b
Tested: on Linux.

8 years agoAdded schema evolution examples to the docs.
Wouter van Oortmerssen [Fri, 8 Jan 2016 22:01:52 +0000 (14:01 -0800)]
Added schema evolution examples to the docs.

Bug: 26296711
Change-Id: I225067d82ac0f8bd71b2b97b1672517ca86cc3b9
Tested: on Linux.

8 years agoMerge pull request #3706 from evolutional/fix-3506
Wouter van Oortmerssen [Tue, 19 Jan 2016 19:10:07 +0000 (11:10 -0800)]
Merge pull request #3706 from evolutional/fix-3506

Check (& skip) of the utf-8 byte order mark

8 years agoMerge pull request #3513 from evolutional/fix-3500
Wouter van Oortmerssen [Tue, 19 Jan 2016 18:40:02 +0000 (10:40 -0800)]
Merge pull request #3513 from evolutional/fix-3500

Java/C#: generation of typed helpers when using nested_flatbuffers

8 years agoMerge pull request #3498 from ncpenke/gcc-4.4.3-support
Wouter van Oortmerssen [Tue, 19 Jan 2016 18:27:57 +0000 (10:27 -0800)]
Merge pull request #3498 from ncpenke/gcc-4.4.3-support

Gcc 4.4.3 support

8 years agoFix build error when flatc binary is missing in PATH.
Rene Fichter [Tue, 19 Jan 2016 12:02:25 +0000 (13:02 +0100)]
Fix build error when flatc binary is missing in PATH.

8 years agoAdded Visual Studio transient files to .gitignore
Oli Wilkinson [Mon, 18 Jan 2016 20:54:22 +0000 (20:54 +0000)]
Added Visual Studio transient files to .gitignore

8 years agoAdded check (& skipping) of the utf-8 byte order mark (0xEF BB BF) at the beginning...
Oli Wilkinson [Mon, 18 Jan 2016 18:58:53 +0000 (18:58 +0000)]
Added check (& skipping) of the utf-8 byte order mark (0xEF BB BF) at the beginning of the file