1. 04 10月, 2018 5 次提交
  2. 02 10月, 2018 3 次提交
  3. 29 9月, 2018 1 次提交
    • M
      Remove lifetime specifier on table getter methods (#4949) · bf871ffd
      Matt Mastracci 提交于
      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
  4. 28 9月, 2018 3 次提交
  5. 27 9月, 2018 2 次提交
  6. 25 9月, 2018 2 次提交
  7. 22 9月, 2018 4 次提交
  8. 21 9月, 2018 1 次提交
    • C
      [C#] Fix compile issue when compiling with older versions of C# (#4938) · ed03faaf
      Christopher Cifra 提交于
      * 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
  9. 13 9月, 2018 1 次提交
  10. 07 9月, 2018 1 次提交
  11. 06 9月, 2018 1 次提交
  12. 05 9月, 2018 4 次提交
  13. 04 9月, 2018 6 次提交
  14. 03 9月, 2018 1 次提交
    • R
      Port FlatBuffers to Rust (#4898) · 3c54fd96
      Robert 提交于
      This is a port of FlatBuffers to Rust. It provides code generation and a
      runtime library derived from the C++ implementation. It utilizes the
      Rust type system to provide safe and fast traversal of FlatBuffers data.
      
      There are 188 tests, including many fuzz tests of roundtrips for various
      serialization scenarios. Initial benchmarks indicate that the canonical
      example payload can be written in ~700ns, and traversed in ~100ns.
      
      Rustaceans may be interested in the Follow, Push, and SafeSliceAccess
      traits. These traits lift traversals, reads, writes, and slice accesses
      into the type system, providing abstraction with no runtime penalty.
      3c54fd96
  15. 31 8月, 2018 1 次提交
  16. 25 8月, 2018 1 次提交
  17. 24 8月, 2018 2 次提交
  18. 21 8月, 2018 1 次提交
    • D
      Mono Fix for Unsafe Mode (#4887) · d8f49e18
      Derek Bailey 提交于
      * Added preprocessor define for C++ if Template Aliases are supported by the compiler
      
      * Revert "Revert "Performance Increase of Vector of Structures using .NET BlockCopy (#4830)""
      
      This reverts commit 1f5eae5d.
      
      * Put<T> method was inside #if UNSAFE_BYTEBUFFER which caused compilation failure when building in unsafe mode
      
      * Revert "Added preprocessor define for C++ if Template Aliases are supported by the compiler"
      
      This reverts commit a75af7352127c261baf0b6cca5cb823e13e78f11.
      d8f49e18