Skip to content
Snippets Groups Projects
  1. Dec 05, 2016
    • Ronak Jain's avatar
      Support for Golang GRPC (Experimental) (#4082) · a31ddd2b
      Ronak Jain authored
      * support for grpc golang
      
      * refactored grpc go generator
      
      * added grpc-go test and refactored
      
      * refactored idl_gen_grpc.cpp
      
      * fixed grpc generate method name
      
      * refactored flatc and fixed line length issue
      
      * added codec to go lib and fixed formatting issues
      
      * fixed spacing issues
      a31ddd2b
  2. Oct 17, 2016
  3. Oct 05, 2016
  4. Sep 09, 2016
    • Jason Sanmiya's avatar
      Fix Windows warnings. · 985de211
      Jason Sanmiya authored
      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.
      985de211
  5. Sep 06, 2016
  6. Aug 24, 2016
  7. Jul 26, 2016
    • Jason Sanmiya's avatar
      Fix Mac build. · 30c07f4e
      Jason Sanmiya authored
      The new line in the set(CMAKE_CXX_FLAGS...) line was getting insert
      verbatim into the Makefile. Makefiles don't like new lines in their
      assignment operators.
      
      The newline escape fix works for CMake 3.0 and above, but since
      we support 2.x, we need to use the legacy solution, which is to
      split into two separate statements.
      
      Tested: cmake -G"Unix Makefiles" works now on Mac.
      Change-Id: I6f4655981b85087c4760c3d26ed0c97c4469ba93
      30c07f4e
  8. Jul 22, 2016
  9. Jul 20, 2016
  10. Jul 01, 2016
  11. Jun 29, 2016
  12. May 01, 2016
  13. Apr 13, 2016
  14. Apr 04, 2016
  15. Apr 02, 2016
  16. Mar 14, 2016
  17. Mar 03, 2016
  18. Feb 11, 2016
  19. Jan 19, 2016
  20. Dec 21, 2015
  21. Dec 02, 2015
  22. Dec 01, 2015
  23. Nov 26, 2015
  24. Nov 17, 2015
    • Johan Euphrosine's avatar
      flatbuffers/cmake: move build_flatbuffers to a standalone file · 331d2d83
      Johan Euphrosine authored
      So that it could be included from both flatbuffers CMakeLists.txt and
      FindFlatBuffers.cmake.
      
      Change-Id: Ie16a879beef9367cd6fd9b2d2157044841a7cdbc
      331d2d83
    • Shuhei Taunma's avatar
      (PHP) add experimental support for PHP language. · 5ce86826
      Shuhei Taunma authored
      * codegen for all basic features: WIP (probably implemented all basic feature)
      * JSON parsing: NO
      * Simple mutation: NO
      * Reflection: NO
      * Buffer verifier: NO (will be add later)
      * Testing: basic: Yes
      * Testing: fuzz: Yes
      * Performance: Not bad
      * Platform: Supported Linux, OS X, Windows (has 32bit integer limitation)
      * Engine Unity: No
      
      flatc --php monster_test.fbs
      
        <?php
        //include neccessary files.
        $fbb = new Google\FlatBuffers\FlatBufferBuilder(1);
        $str = $fbb->createString("monster");
        \MyGame\Example\Monster::startMonster($fbb);
        \MyGame\Example\Monster::addHp($fbb, 80);
        \MyGame\Example\Monster::addName($fbb, $str);
        $mon = \MyGame\Example\Monster::endMonster($fbb);
        $fbb->finish($mon);
        echo $fbb->sizedByteArray();
      
      PHP 5.4 higher
      
      Currently, we do not register this library to packagist as still experimental and versioning problem.
      If you intended to use flatbuffers with composer. add repostiories section to composer.json like below.
      
        "repositories": [{
          "type": "vcs",
          "url": "https://github.com/google/flatbuffers"
        }],
      
       and just put google/flatbuffers.
      
        "require": {
          "google/flatbuffers": "*"
        }
      
      * PHP's integer is platform dependant. we strongly recommend use 64bit machine
        and don't use uint, ulong types as prevent overflow issue.
        ref: http://php.net/manual/en/language.types.integer.php
      
      * php don't support float type. floating point numbers are always parsed as double precision internally.
        ref: http://php.net/manual/en/language.types.float.php
      
      * ByteBuffer is little bit slow implemnentation due to many chr/ord function calls. Especially encoding objects.
        This is expected performance as PHP5 has parsing arguments overhead. probably we'll add C-extension.
      
      Basically, PHP implementation respects Java and C# implementation.
      
      Note: ByteBuffer and FlatBuffersBuilder class are not intended to use other purposes.
            we may change internal API foreseeable future.
      
      PSR-2, PSR-4 standards.
      
      Implemented simple assertion class (respect JavaScript testcase implementation) as we prefer small code base.
      this also keeps CI iteration speed.
      
      we'll choose phpunit or something when the test cases grown.
      5ce86826
  25. Nov 14, 2015
    • Jon Simantov's avatar
      Store the dirs you pass into build_flatbuffers as properties. · 65c9b355
      Jon Simantov authored
      This allows you to query the generated target for those properties
      later, so dependent modules can refer to the directories to, for example,
      add them to the include_directories.
      
      Change-Id: I7a6bd34c5c1d08e2ea69b5ad845223297cad1159
      65c9b355
    • Jon Simantov's avatar
      Added build_flatbuffers function to CMake. · f2949c3f
      Jon Simantov authored
      This function is designed to be called by projects that use FlatBuffers.
      It takes a list of FlatBuffers schemas and a list of schema include
      directories, and generates build rules to create generated headers
      and/or binary schemas for those files, as well as optionally copying
      all of the text schemas into a directory for your use (for example if
      you need to parse text schemas within your app).
      
      See function comments for more details.
      
      Change-Id: I181684b916e91d965e14849d8f83ec2c83e9a4a4
      f2949c3f
  26. Oct 15, 2015
    • Evan Wallace's avatar
      Add support for JavaScript code generation · 224e33ed
      Evan Wallace authored
      This adds a JavaScript language target. The generated JavaScript uses Google
      Closure Compiler type annotations and can be compiled using the advanced
      compilation mode, which performs type checking and optimizations such as
      inlining and dead code elimination. The generated JavaScript also exports all
      generated symbols for use with Node.js and RequireJS. This export behavior
      can be turned off with the --no-js-exports flag for use with Google Closure
      Compiler.
      224e33ed
  27. Aug 03, 2015
  28. Jul 22, 2015
  29. Jun 16, 2015
  30. Jun 15, 2015
  31. May 28, 2015
  32. May 12, 2015
    • rw's avatar
      Port FlatBuffers to Python. · 48dfc69e
      rw authored
      Implement code generation and self-contained runtime library for Python.
      
      The test suite verifies:
        - Correctness of generated Python code by comparing output to that of
          the other language ports.
        - The exact bytes in the Builder buffer during many scenarios.
        - Vtable deduplication correctness.
        - Edge cases for table construction, via a fuzzer derived from the Go
          implementation.
        - All code is simultaneously valid in Python 2.6, 2.7, and 3.4.
      
      The test suite includes benchmarks for:
        - Building 'gold' data.
        - Parsing 'gold' data.
        - Deduplicating vtables.
      
      All tests pass on this author's system for the following Python
      implementations:
        - CPython 2.6.7
        - CPython 2.7.8
        - CPython 3.4.2
        - PyPy 2.5.0 (CPython 2.7.8 compatible)
      48dfc69e
  33. May 04, 2015
  34. Apr 28, 2015
  35. Apr 15, 2015
Loading