Skip to content
Snippets Groups Projects
  1. Aug 05, 2015
  2. Jun 26, 2015
  3. Jun 16, 2015
  4. Jun 15, 2015
  5. Jun 13, 2015
  6. Jun 07, 2015
  7. May 27, 2015
    • Wouter van Oortmerssen's avatar
      Added --defaults-json to output fields at default value. · ecf5a6a5
      Wouter van Oortmerssen authored
      Normal behavior is to not output fields that happen to have
      the default value, since those will be reproduced anyway
      when turned into a FlatBuffer binary. This however can be problematic
      when using JSON to interop with other system since they might not
      know this default value. This flatc option (and also flag
      to GenerateText) will force those fields to be output anyway.
      
      Tested: on Linux.
      ecf5a6a5
  8. 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
  9. May 07, 2015
  10. May 04, 2015
  11. Apr 29, 2015
    • Wouter van Oortmerssen's avatar
      Mutable FlatBuffers: in-place updates. · 3ec5dddb
      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
      3ec5dddb
  12. Mar 12, 2015
  13. Jan 28, 2015
  14. Jan 21, 2015
  15. Oct 16, 2014
  16. Sep 24, 2014
  17. Sep 23, 2014
  18. Sep 18, 2014
  19. Sep 15, 2014
  20. Aug 22, 2014
  21. Aug 19, 2014
  22. Aug 12, 2014
    • Wouter van Oortmerssen's avatar
      File identifier feature. · 5da7bda8
      Wouter van Oortmerssen authored
      Allows you to add, and test for the presence of a magic 4-char
      string in a FlatBuffer.
      
      Tested: on OS X.
      
      Change-Id: I090692a9e4fb53bed3543279a28563e67132cba0
      5da7bda8
  23. Jul 22, 2014
    • Stewart Miles's avatar
      Terminate the output directory argument of flatc. · 60acef94
      Stewart Miles authored
      Given the command
      
      flatc -o . -c test.fbs
      
      it would generate header file
      
      .test_generated.h
      
      rather than
      
      ./test_generated.h
      
      This fixes this issue.
      
      Tested:
      Manually verified that flatc generates the correct output files given output
      paths ending with and without '/' on Linux and Windows.
      
      Bug: 16464827
      Change-Id: I854cb881286f22690f1885f942cf3fd2fc59ca8d
      60acef94
  24. Jul 21, 2014
    • Wouter van Oortmerssen's avatar
      Small fixes to the core C++ FlatBuffers implementation. · 9143a933
      Wouter van Oortmerssen authored
      - Ensured weak linkage with the version string is not used on Windows,
        especially cygwin (which throws a linker error).
      - Avoided a VS debug error for taking the address of the first element
        of an empty vector.
      - Made copy/assignment constructors for downward_vector and
        FlatBufferBuilder private, to avoid people unintentionally making
        expensive copies.
      - Using the more correct _WIN32 instead of WIN32
      
      Change-Id: I801b5c8b159e3721af6d1ef0978a3247ba168bab
      Tested: on Windows (VS + Cygwin) and Linux.
      9143a933
    • rw's avatar
      Port FlatBuffers to Go. · 74d5f370
      rw authored
      Implement code generation and runtime library for Go, derived from the
      Java implementation. Additionally, the test suite verifies:
      
       - the exact bytes in the Builder buffer during object construction,
       - vtable deduplication, and
       - table construction, via a fuzzer derived from the C++ implementation.
      
      Change-Id: Ib95a019c684891def2b50281e570b4843fea7baa
      74d5f370
  25. Jul 11, 2014
  26. Jul 09, 2014
    • Wouter van Oortmerssen's avatar
      Added a "strict JSON" mode to the text generator and compiler · 7fcbe723
      Wouter van Oortmerssen authored
      This will add quotes around field names, as required by the official
      standard. By default it will leave quotes out, as it is more readable,
      more compact, and is accepted by almost all JSON parsers.
      The -S switch to flatc turns on strict mode.
      
      As per rfc 7159.
      
      Change-Id: Ibabe9c8162c47339d00ec581d18721a2ba40c6d0
      Tested: on Windows.
      7fcbe723
  27. Jul 08, 2014
    • Wouter van Oortmerssen's avatar
      Added functionality to assign field ids manually in a schema · 9140144d
      Wouter van Oortmerssen authored
      New attribute:
      
      -   `id: n` (on a table field): manually set the field identifier to `n`.
          If you use this attribute, you must use it on ALL fields of this table,
          and the numbers must be a contiguous range from 0 onwards.
          Additionally, since a union type effectively adds two fields, its
          id must be that of the second field (the first field is the type
          field and not explicitly declared in the schema).
          For example, if the last field before the union field had id 6,
          the union field should have id 8, and the unions type field will
          implicitly be 7.
          IDs allow the fields to be placed in any order in the schema.
          When a new field is added to the schema is must use the next available ID.
      
      Change-Id: I8690f105f3a2d31fdcb75a4fab4130692b12c62f
      Tested: on Windows
      9140144d
  28. Jul 02, 2014
  29. Jun 10, 2014
Loading