- 04 May, 2015 2 commits
-
-
Wouter van Oortmerssen authored
Change-Id: I2de7d14dbb1f7b8f81022dd2c9da65060ae49300 Tested: on Linux.
-
Wouter van Oortmerssen authored
Change-Id: I56392340de4439d05fa8f06a7336ff72c6f9346d Tested: on Linux
-
- 29 Apr, 2015 1 commit
-
-
Wouter van Oortmerssen authored
This commit contains the first step in providing mutable FlatBuffers, non-const accessors and mutation functions for existing fields generated from --gen-mutable. Change-Id: Iebee3975f05c1001f8e22824725edeaa6d85fbee Tested: on Linux. Bug: 15777024
-
- 15 Apr, 2015 2 commits
-
-
Mormegil authored
If an IDL file uses DOS-style EOLs (CR+LF), line comments need to ignore the second linebreak character, otherwise, as is currently the case, the parsed documentation comment includes a trailing `\r` character, which is then output verbatim into the output source code by flatc. Change-Id: I39591631995a980622d20a4a32315178b33f18f6
-
franchuti688 authored
added bii-travis.sh and readme.md files; added build status section with travis and biicode build systems Change-Id: I93acd1ca9497416ade6293d63b5311c4c31b880f
-
- 13 Apr, 2015 1 commit
-
-
Mormegil authored
Enums should not be (badly) emulated with classes in C# but should use native C# enums instead. Java implementation made an explicit choice not to use the (more complex) Java enums, but C# enums are just light-weight syntactic coating over integral types. Fixes issue #171. Change-Id: I9f4d6ba5324400a1e52982e49b58603cb7d7cca7
-
- 10 Apr, 2015 1 commit
-
-
Advay Mengle authored
Makes enums/structs/tables unsubclassable (final or sealed) and prevents instantiation of enum classes (which are solely static constants). Tested (Mac OS 10.10.2): 1. run flattests 2. cd tests && ../flatc -c monster_test.fbs && ../flatc -j monster_test.fbs && ../flatc -g monster_test.fbs && ../flatc -n monster_test.fbs # Note deltas for C# and Java. 3. ./JavaTest.sh **Breaking api change** Change-Id: Ie008c941c36d212690da58ddc72c9b228eb7a093
-
- 06 Apr, 2015 4 commits
-
-
Joël Lamotte authored
Change-Id: Ie44419026eca94bce0a2857abef95a82e78cfc3e
-
Ben Harper authored
Change-Id: I15cc8924d6607bd93068c762fd67e6088cfd9789
-
Kyle Jones authored
Change-Id: If08b2d839489d40e977de794b13584fa66ff32c1
-
INADA Naoki authored
Change-Id: I1c5fbd019cc233e1d551887ff5fb740420c18c2b
-
- 02 Apr, 2015 2 commits
-
-
Advay Mengle authored
- Add parse handling of .proto struct and field doc comments (enums and their values were already handled) - Add FBS generation handling of doc comments for structs, their fields, enums, and their values (requires linking idl_gen_general in the test binary build) - Tested using test.proto|golden with doc comments added. Xcode run of flattest passes. Change-Id: Idff64dd8064afba227174ab77d2c7be22d006628
-
Advay Mengle authored
Tested by regenerating all tests/ generated sources; note that only Monster.java changes. Ran flattests as well. Change-Id: I65b6ea7d208b0ccd6a0b34761162fed6ba391fc5
-
- 30 Mar, 2015 1 commit
-
-
Wouter van Oortmerssen authored
Change-Id: I04775dedc61f1c448eedb1883182af7b07239797 Tested: on Linux.
-
- 27 Mar, 2015 1 commit
-
-
Jason Sanmiya authored
We were looking for 'flatc' in motive/bin/Debug/flatc, on Mac. It's actually built to flatbuffers/Debug/flatc. Tested: OS X Yosemite, ndk-r10d. Also tested on Linux. Change-Id: I9f1ecfe00c5f42fd9b6808b5a5da1c920487a4c2
-
- 24 Mar, 2015 1 commit
-
-
Wouter van Oortmerssen authored
(Java doesn't support unsigned types). ubyte/ushort return as int uint returns as long (all with correct masking) ulong still returns as long, as before. Tested: on Linux & Windows. Bug 17521464 Change-Id: Id6bc8f38fc8c1a2f4e6733c6980dc6b6e322b452
-
- 13 Mar, 2015 3 commits
-
-
Wouter van Oortmerssen authored
BitConverter was excessively slow since it allocates a byte array at each access. Bug: 18702381 Change-Id: I47be9c38e1d04287ba4c10bc369848f3e13a2a2f Tested: on Windows.
-
Wouter van Oortmerssen authored
Change-Id: Ifa6d9459c53ae60b9bf936d9468ec971ee282f14 Tested: on Linux and Windows.
-
reynolma2 authored
There is a bug in creating a C# table when it includes a field of type 'BOOL'. The problem is that the generate C# code is as follows: "bool SampleValue = 0;" This will fail to compile, because in C# this fails, it needs to be generated as: "bool SampleValue = false;" The error is in line ~510 Change-Id: I77f6eea0f269b0540dbeb462602fc447cb69237d
-
- 12 Mar, 2015 5 commits
-
-
Ben Harper authored
This function gets around the inefficiency of populating a [ubyte] vector byte by byte. Since ubyte vectors are probably the most commonly used type of generic byte buffer, this seems like a worthwhile thing to create a fast path for. Benchmarks show a 6x improvement in throughput on x64. There is a new test verifying the functionality of the function. Change-Id: I82e0228ae0f815dd7ea89bf168b8c1925f3ce0d7
-
Max Galkin authored
1. Random table fields are now marked deprecated. The deprecation rate is adjustable, default is ~10% of fields. 2. Vector type previously produced a dummy field, now a trivial ubyte vector is generated instead. 3. The fuzzed "instances" were previously generated with identical data, now they are randomized: I suppose such was the intent from the beginning, just wasn't implemented. I ran the new test with a few different settings and random seeds (but only on Windows + VS2015), and it always passed. Change-Id: I2014686b6680aec24049ccda3f6deffe5205a83e
-
Max Galkin authored
This change renames a few variables to fix the build in VS 2015. VS 2015 new warnings: http://blogs.msdn.com/b/vcblog/archive/2014/11/12/improvements-to-warnings-in-the-c-compiler.aspx Change-Id: Ic9c3f75ee717f0125960c813df442ed4fbcceb4a
-
gregoire-astruc authored
* Tests for Release feature. * Check vector_downward.buf_ before passing to deallocator. * Assertions. * Shared test between unique_ptr and GetBufferPointer() * Unnecessary using directives. * Reallocate vector if released on clear operation. * Use allocator attribute. * Renamed `Release()` to `ReleaseBufferPointer()` * For consistency with `GetBufferPointer()` * Updated documentation for ReleaseBuffer. Change-Id: I108527778e56ae5127abf9e5b1be6b445ad75cb7
-
loverszhaokai authored
Change-Id: I106de8985cea572590d49c896b72c54f33e73bd2
-
- 09 Mar, 2015 1 commit
-
-
Wouter van Oortmerssen authored
build_apk.sh assumed pre-releases would be sorted towards the end, but instead they end up at the front (sort -n) causing the api selection loop to halt early. bug: 19213196 Change-Id: I210a18c16e81880229f154c4613f8b97d90ac9bd tested: on Linux.
-
- 23 Feb, 2015 1 commit
-
-
Grégoire Astruc authored
Cast to short for mono compatibility. Change-Id: I568059a21369b895fa52002fa231f7594f0f736c
-
- 17 Feb, 2015 2 commits
-
-
Alex Ames authored
-
Alex Ames authored
FlatBuffer schema files can now optionally specify a hash attribute that will allow someone writing json files to enter a string to be hashed rather than a specific value. The hashing algorithm to use is specified by the schema. Currently the only algorithms are fnv1 and fnv1a. There are 32 bit and 64 variatns for each. Additionally, a hashing command line tool was added so that you can see what a string will hash to without needing to inspect the flatbuffer binary blob. Change-Id: I0cb359d0e2dc7d2dc1874b446dc19a17cc77109d
-
- 13 Feb, 2015 1 commit
-
-
Stefan Eilemann authored
Change-Id: Ia69fc3098468eb64420215dc1068342ccbbb1ede
-
- 11 Feb, 2015 1 commit
-
-
Hyungjin Kim authored
The `<field>_nested_root()` is not viable from const object. (We usually get `const Monster *`.) Change-Id: I0d0adcb38dd974318608417ee3094c34fb9c480d
-
- 10 Feb, 2015 1 commit
-
-
Alex Ames authored
-
- 09 Feb, 2015 5 commits
-
-
Alex Ames authored
Added a call to $(strip) to the parameters of `flatbuffers_header_build_rules` so that newlines can be used when passing arguments to it. Change-Id: Ie2149acebcef91d28ce2cb4bfd204a209b4c4e2f
-
franramirez688 authored
Change-Id: Id9750cceaa57aad3c969cf12299aa60f21c29074
-
Wouter van Oortmerssen authored
-
Wouter van Oortmerssen authored
-
Wouter van Oortmerssen authored
-
- 04 Feb, 2015 4 commits
-
-
Wouter van Oortmerssen authored
Updated CONTRIBUTING.md with some tips. Change-Id: Id377621a98804293837fda25ef0758cf988eea37
-
Alex Ames authored
-
Wouter van Oortmerssen authored
Previously, if you were re-using instances of FlatBufferBuilder and an earlier buffer would use a 64bit item where later ones do not, you could be wasting space. Change-Id: Ic8090a38f97ce73194e991ba72bcfae74a7ace9f Tested: on Linux.
-
Florian Enner authored
getRootAs..() function now has a second implementation that accepts an existing object to allow object reuse, much like all other methods that refer to objects. Change-Id: Iffef567c903a130761ef7de98867e5465d29a04d
-