Skip to content
Snippets Groups Projects
  1. Jan 22, 2018
  2. Jan 18, 2018
  3. Jan 05, 2018
  4. Dec 21, 2017
  5. Dec 04, 2017
  6. Dec 01, 2017
    • rmawatson's avatar
      this is allow custom allocator for obj-api structs/tables. (#4520) · 53a89773
      rmawatson authored
      added "native_custom_alloc" attribute to tables/structs, eg.
      
      table parent_table( native_custom_alloc:"custom_alloc_name" ) {
      ...
      }
      
      with a custom allocator defined as
      
      template <typename T> class custom_alloc_name : public std::allocator<T> {
      public:
      
       typedef T*       pointer;
      
       template <class U>
       struct rebind {
        typedef custom_alloc_name<U> other;
       };
      
       pointer allocate(const std::size_t n) {
            return ....;
       }
      
       void deallocate(T* ptr, std::size_t n) {
          ...
       }
      
       custom_alloc_name() throw() {}
       template <class U> custom_alloc_name(const custom_alloc_name<U>&) throw() {}
      };
      };
      53a89773
  7. Oct 06, 2017
    • Wouter van Oortmerssen's avatar
      Improved .proto conversion. · 9c3920d0
      Wouter van Oortmerssen authored
      - Allowed enums to be declared before use.
      - Generalized parsing of `required`.
      - Reworked escaping of namespaces.
      - Escaping field names that are C++ keywords.
      - Many smaller fixes.
      
      Change-Id: Ie580de7b70dc208f676f4f71bb0d061808648b8d
      Tested: on Linux.
      9c3920d0
  8. Sep 22, 2017
  9. Aug 24, 2017
    • Wouter van Oortmerssen's avatar
      Cleaned up namespace handling. · 321a1c9d
      Wouter van Oortmerssen authored
      A Namespace object is now guaranteed unique.
      This cleaned up some old workarounds and latent bugs.
      
      Change-Id: Ic3f12d89947871b03b2c449ba51b3186f953adde
      Tested: on Linux.
      Bug: 21336857
      321a1c9d
    • Wouter van Oortmerssen's avatar
      Trimmed vtables of trailing zeroes. · ac1015e3
      Wouter van Oortmerssen authored
      This is something the format supports, but none of the builders
      were doing. Can save 10-20% on FlatBuffer binary size!
      
      Also fixed the Go tests.
      
      Change-Id: I616c56ce9bbcfcaee23aa24f0532fcb60b6a8c75
      Tested: on Linux.
      ac1015e3
  10. Aug 14, 2017
  11. Aug 11, 2017
    • Kamil Rojewski's avatar
      Vector of unions for TS/JS and PHP (#4404) · 46bb05d9
      Kamil Rojewski authored
      * Eclipse ignore
      
      * TypeScript support
      
      * Prefixing enums
      
      * Test results
      
      * Merged JS and TS generators
      
      * Fixed AppVeyor build problems
      
      * Fixed more AppVeyor build problems
      
      * Fixed more AppVeyor build problems
      
      * Changed TS flag to options struct
      
      * Storing options by value
      
      * Removed unneeded const
      
      * Re-export support for unions
      
      * Uint support
      
      * Casting bools to numbers for mutation
      
      * TS shell tests
      
      * Reverted generates js test file to original version
      
      * Backing up js tests and properly generating test data
      
      * Not importing flatbuffers for TS test generation
      
      * Not overwriting generated js for tests
      
      * AppVeyor test fixes
      
      * Generating the most strict TS code possible
      
      * Not returning null when creating vectors
      
      * Not returning null from struct contructors
      
      * Vector of unions for ts/js
      
      * Sanity check for languages
      
      * Indentation fix + output test files
      
      * Vectors of unions for php
      
      * Fixes to union vector handling + tests
      46bb05d9
    • Kamil Rojewski's avatar
      Copying required field to union type vector (#4407) · 7cc72e4b
      Kamil Rojewski authored
      * Eclipse ignore
      
      * TypeScript support
      
      * Prefixing enums
      
      * Test results
      
      * Merged JS and TS generators
      
      * Fixed AppVeyor build problems
      
      * Fixed more AppVeyor build problems
      
      * Fixed more AppVeyor build problems
      
      * Changed TS flag to options struct
      
      * Storing options by value
      
      * Removed unneeded const
      
      * Re-export support for unions
      
      * Uint support
      
      * Casting bools to numbers for mutation
      
      * TS shell tests
      
      * Reverted generates js test file to original version
      
      * Backing up js tests and properly generating test data
      
      * Not importing flatbuffers for TS test generation
      
      * Not overwriting generated js for tests
      
      * AppVeyor test fixes
      
      * Generating the most strict TS code possible
      
      * Not returning null when creating vectors
      
      * Not returning null from struct contructors
      
      * Copying required field to union type vector
      
      * Removed unneccessary bool
      7cc72e4b
  12. Aug 10, 2017
  13. Aug 04, 2017
    • rouzier's avatar
      [c++] Add support for boolean types in flexbuffers (#4386) · a2b1bfc1
      rouzier authored
      * Add support for boolean types in flexbuffers
      
      * Simplify casting number <=> boolean
      
      * Added comments for tests
      
      * Add proper support for Booleans
      
      * Bad rebase
      
      * No special case for strings
      
      * Removed unused test
      
      * Simplify logic
      a2b1bfc1
  14. Aug 02, 2017
  15. Jul 28, 2017
    • Christian Helmich's avatar
      Added support for nested flatbuffers serializing to json (#4391) · 89a68942
      Christian Helmich authored
      * added bool for nested_flatbuffer
      setting bool flag nested_flatbuffer according to attributes
      setting nested type
      
      * added JSON serialization for nested flatbuffers
      
      * simplified lookup of nested_flatbuffer StructDef
      
      * added nested_flatbuffer parsing workound relying on flexbuffers
      
      * moved nested flatbuffer parsing into its own function for clarity
      removed flexbuffers workound to simplify and speed up nested_flatbuffer parsing
      added support for 'legacy' nested_flatbuffers, ubyte arrays
      
      * inlined functions for nested parser init/clean since only used once
      
      * whitespace formatting
      
      * changed type of FieldDef.nested_flatbuffer from bool to StructDef*
      removed subsequent type lookups
      
      * removed copies of unrequired data when initializing nested parser
      
      * applied changes requested by reviewer
      
      * removed superfluous lookup of nested_flatbuffer field attributes
      
      * renamed camelCased variables to snake_case
      89a68942
  16. Jul 20, 2017
    • Stewart Miles's avatar
      C++98 (stlport) support for core FlatBuffers and FlexBuffers. · a8923222
      Stewart Miles authored
      * Added internal - limited - implementation of flatbuffers::unique_ptr
        for STLs that don't ship with std::unique_ptr.  In C++11 and beyond
        this is just an alias for std::unique_ptr.
      * Aliased used type traits structs is_scalar is_floating_point is_unsigned
        into flatbuffers namespace so they can be replaced in C++98 implementations.
        Right now these point at stlport's TR1 implementations.
      * Wrapped vector::data() in vector_data().
      * Wrapped vector::emplace_back() in vector_emplace_back().
      * Wrapper string::back() in string_back().
      * Added variants of FlatBufferBuilder::CreateVector() and
        FlatBufferBuilder::CreateVectorOfStructs() that allow the use of plain
        function pointers.
        Generated code has also been modified to use plain functions to build objects
        rather than std::function() so all generated code will work in C++98
        applications.
      * Added flexbuffers::Builder::Vector(), flexbuffers::Builder::TypedVector()
        and flexbuffers::Builder::Map() methods that allow the use of plain function
        pointers.
      * Changed Parser to internally use plain function pointers when parsing table
        and vector delimiters.
      * Added specializations of NumToString() for 64-bit types that aren't supported
        by stringstream in stlport.
      * Overloaded numeric_limits for 64-bit types not supported by stlport.
      * Replaced build_apk.sh (which was broken by deprecation of the
        "android" tool in the Android SDK) with build.gradle and the
        appropriate gradle wrapper to build an APK.
      * Switched Android build to build against all STL variants.
      * Updated travis configuration to build Android test and sample.
      
      Tested:
      * Verified all tests continue to work on Linux, OSX and Android.
      * Verified Travis build is green.
      
      Change-Id: I9e634363793f85b9f141d21454b10686020a2065
      a8923222
  17. Jul 19, 2017
    • schoetbi's avatar
      idl_parser.cpp ignores $schema in input json (#4382) · 2e2063cb
      schoetbi authored
      * idl_parser.cpp ignores $schema in input json
      #4381
      
      * idl_parser.cpp: Fixed ci error signed unsigned comparison
      
      * idl_parser.cpp: replaced case insensitive search for $schema with case sensitive search
      
      * idl_parser.cpp: Expecting a string constant after $schema
      #4382
      2e2063cb
  18. Jun 26, 2017
  19. Jun 16, 2017
  20. Jun 12, 2017
  21. Jun 07, 2017
    • Guillaume Giraud's avatar
      [cpp] Json parsing: adding support for parsing nested lists and top level lists (#4338) · b1740688
      Guillaume Giraud authored
      * Extended json parsing capability: add support for parsing nested lists and top level lists
      
      * Stylistic conformance with surrounding code + generalized comments
      
      * More code tidy-up for stylistic conformance with surrounding code
      
      * Blank lines
      
      * Reverted changes related to top-level list parsing
      
      * Styling: newline before else
      
      * Taking out ProcessTableFields which is no longer needed as the top level list change was reverted.
      b1740688
  22. Jun 02, 2017
  23. May 24, 2017
    • Wouter van Oortmerssen's avatar
      Fixed --keep-prefix functionality. · 22743ca4
      Wouter van Oortmerssen authored
      Changing to keep include prefixes had two side effects: the main
      file being parsed wasn't filtered out anymore, and include directory
      paths would be added to the path in the include statement.
      
      Also moved the include_test*.fbs files to sub directories so we
      can actually test the handling of -I etc.
      
      tested: on Linux.
      
      Change-Id: Ibae095cea7ab0cccbac15cfb5171719f6b5cad8c
      22743ca4
  24. May 19, 2017
  25. May 18, 2017
    • sfariv's avatar
      added check for presence of required fields. (flatc) c++ (#4316) · 55dec4d2
      sfariv authored
      * added check for presence of required fields.
      
      * updates to resolve Travis CI build error.
      
      * fixes for resolving appveyor build errors.
      
      * fixes for resolving appveyor build errors.
      
      * fixes for resolving appveyor build errors.
      
      * updates per aardappel's comments.
      
      * updated a variable's name.
      
      * updates per aardappel's comments.
      55dec4d2
  26. May 11, 2017
  27. Apr 19, 2017
  28. Apr 18, 2017
  29. Apr 17, 2017
    • Jason Stubbs's avatar
      [C++] fix bounds checking on integer parsing (#4250) · a07f0d42
      Jason Stubbs authored
      * fix bounds checking on integer parsing
      
      the previous code was allowing 255 for int8_t, similar for int16_t
      and int32_t, and even negative values for unsignd types.
      
      this patch fixes bounds checking for 8-bit, 16-bit and 32-bit types.
      testing for both acceptable values and unacceptable values at the
      boundaries are also improved.
      
      bounds checking on 64-bit types isn't addressed by this patch.
      
      * fix 'unary minus operator applied to unsigned type, result still unsigned'
      
      * fix & placement
      a07f0d42
  30. Apr 13, 2017
  31. Mar 10, 2017
Loading