1. 18 Oct, 2018 2 commits
    • Frank Benkstein's avatar
      forbid enum values that are out of range (#4977) · 5c0f914f
      Frank Benkstein authored
      * forbid enum values that are out of range
      
      Enum values that are out of range can lead to generated C++ code that does
      not compile.  Also forbid boolean enums.
      
      * update enum and union documentation slightly
      5c0f914f
    • Sumant Tambe's avatar
      Efficient Conversion of a FlatBufferBuilder to a MessageBuilder (#4980) · 802639e4
      Sumant Tambe authored
      * Efficient conversion of FlatBufferBuilder to grpc::MessageBuilder
      
      * Added a variety of tests to validate correctness of the MessageBuilder move operations.
      Disable MessageBuilder half-n-half tests on MacOS.
      
      * Fix failing Android build
      
      * Generalized the MessageBuilder move constructor to accept a deallocator
      802639e4
  2. 16 Oct, 2018 1 commit
  3. 15 Oct, 2018 4 commits
    • kostya-sh's avatar
      Go - Use Go bool type for bool fields (#4962) · 76d31e1b
      kostya-sh authored
      * Use Go bool type for bool fields, and store non-default bool field to test data
      76d31e1b
    • Frank Benkstein's avatar
      disallow c style casts (#4981) · 20396a17
      Frank Benkstein authored
      Fixes #4857.
      20396a17
    • Frank Benkstein's avatar
      don't use std::function in flatbuffers::Parser (#4995) · a3d8391f
      Frank Benkstein authored
      std::function makes code harder to debug because it requires stepping
      through a separate destructor and call operator.  It's use unnecessary
      in the Parser since the functions taking functors are private and are
      only used within idl_parser.cpp.  Therefore the definitions can stay in
      idl_parser.cpp as well.  Only care must be taken that the definitions
      appear before use but that's already true and all compilers will
      complain equally if it get's violated.  This change might also improve
      performance since it might allow inlining where it wasn't possible
      before but I haven't measured that.
      a3d8391f
    • iceboy's avatar
      add :runtime_cc target (#4994) · 241e87d1
      iceboy authored
      241e87d1
  4. 11 Oct, 2018 4 commits
  5. 08 Oct, 2018 6 commits
  6. 04 Oct, 2018 2 commits
  7. 03 Oct, 2018 5 commits
  8. 01 Oct, 2018 3 commits
  9. 29 Sep, 2018 1 commit
    • Matt Mastracci's avatar
      Remove lifetime specifier on table getter methods (#4949) · bf871ffd
      Matt Mastracci authored
      With the old-style code, the test fails with a borrow-checker error:
      
      ```
        #[inline]
        pub fn name(&'a self) -> &'a str {
          self._tab.get::<flatbuffers::ForwardsUOffset<&str>>(Monster::VT_NAME, None).unwrap()
        }
      ```
      
      ```
      error[E0597]: `e` does not live long enough
         --> tests/integration_test.rs:273:57
          |
      273 |         let enemy_of_my_enemy = monster.enemy().map(|e| e.name());
          |                                                         ^      - `e` dropped here while still borrowed
          |                                                         |
          |                                                         borrowed value does not live long enough
      274 |         assert_eq!(enemy_of_my_enemy, Some("Fred"));
      275 |     }
          |     - borrowed value needs to live until here
      ```
      bf871ffd
  10. 28 Sep, 2018 1 commit
  11. 27 Sep, 2018 3 commits
  12. 26 Sep, 2018 1 commit
  13. 24 Sep, 2018 2 commits
  14. 21 Sep, 2018 4 commits
  15. 20 Sep, 2018 1 commit
    • Christopher Cifra's avatar
      [C#] Fix compile issue when compiling with older versions of C# (#4938) · ed03faaf
      Christopher Cifra authored
      * C# support for directly reading and writting to memory other than byte[].  For example, ByteBuffer can be initialized with a custom allocator which uses shared memory / memory mapped files.
      
      Public access to the backing buffer uses Span<T> instead of ArraySegment<T>.
      
      Writing to the buffer now supports Span<T> in addition to T[].
      
      To maintain backwards compatibility ENABLE_SPAN_T must be defined.
      
      * Remove usage of expression bodied method so that ByteBuffer can be compiled with older version of C#.
      ed03faaf