1. 21 Feb, 2019 5 commits
    • Eric Erhardt's avatar
      Remove byte* property in ByteBufferAllocator (#5191) · 0cdacdfb
      Eric Erhardt authored
      * Remove byte* property in ByteBufferAllocator.
      
      This allows consumers to read/write into native memory, but without
      having to always pin the managed `byte[]` when working with managed
      memory. This allows for users to not need to Dispose() ByteBuffers
      when they are using the default ByteArrayAllocator class.
      
      Instead, we use `Span<byte> GetSpan()` methods to get access to the
      underlying memory buffer.
      
      Fix #5181
      
      * Add a set of benchmark tests.
      
      * Add ReadOnly spans.
      
      This allows consumers to use ReadOnlyMemory<byte> as the backing storage
      for ByteBuffers, which is useful in read-only scenarios.
      
      * Run tests using ENABLE_SPAN_T in appveyor.
      
      * Fix FlatBuffers.Test.csproj to work on older MSBuild versions.
      
      * Change the test script to test UNSAFE_BYTEBUFFER
      
      * Address PR feedback.
      
      Remove IDisposable from ByteBuffer.
      
      * Respond to PR feedback.
      0cdacdfb
    • bwelling's avatar
      Improve endian detection. (#5204) · bb584420
      bwelling authored
      Add support for using __BYTE_ORDER__, to support platforms where g++
      doesn't explicitly define __BIG_ENDIAN__, like Solaris Sparc.
      bb584420
    • Marc Butler's avatar
      Add RPM packaging support (#5177) · 4567b131
      Marc Butler authored
      * Add RPM packaging support
      
      Using the existing PackageDebian as template add support for
      generating an rpm with the package target.
      
      * Restore debian package target
      
      Also add an option to advertise the fact.
      
      * Update package description
      
      C-n-p from README.md
      
      * Update rpm package maintainer
      4567b131
    • Kamil Rojewski's avatar
      Fixed vector of unions crash in java (#5190) · 8f8fb2b3
      Kamil Rojewski authored
      * Fixed vector of unions crash in java
      
      * Regenerated test code
      
      * Fixed windows tests
      8f8fb2b3
    • Efe Burak's avatar
      Added .net core project (#5187) · 69d761d1
      Efe Burak authored
      69d761d1
  2. 19 Feb, 2019 4 commits
  3. 15 Feb, 2019 2 commits
  4. 14 Feb, 2019 4 commits
  5. 11 Feb, 2019 4 commits
  6. 08 Feb, 2019 1 commit
  7. 07 Feb, 2019 1 commit
  8. 05 Feb, 2019 1 commit
  9. 04 Feb, 2019 2 commits
    • Travis Staley's avatar
      Changing array to be an associative array so that the Name function can work… · 31e34faa
      Travis Staley authored
      Changing array to be an associative array so that the Name function can work with non-sequential enums as well as those beginning at something other than zero. (#5151)
      
      Also including the resulting changes in php files.
      31e34faa
    • Jon Kunkee's avatar
      Only use __movsb on architectures that support it (#5147) · 4d98faa5
      Jon Kunkee authored
      With the introduction of Windows 10 on ARM (ARM64), code that assumes
      that Windows targets are always x86 or x86_64 targets needs to be
      updated.
      
      The hot function ReadUInt64 has been optimized in MSVC builds using the
      compiler intrinsic __movsb. Since this does not exist on ARM64 Windows,
      this change uses the pure C++ path that other platforms use instead.
      4d98faa5
  10. 29 Jan, 2019 1 commit
  11. 28 Jan, 2019 1 commit
  12. 24 Jan, 2019 5 commits
  13. 17 Jan, 2019 3 commits
  14. 14 Jan, 2019 3 commits
  15. 07 Jan, 2019 3 commits
    • Vladimir Glavnyy's avatar
    • Vladimir Glavnyy's avatar
      Add `NaN` and `Inf` defaults to the C++ generated code. (#5102) · dd288f71
      Vladimir Glavnyy authored
      * Add `NaN` and `Inf` defaults to the C++ generated code.
      
      * Refactoring: add FloatConstantGenerator
      
      * Refactoring-2:
      
      - remove isnan checking for all float/double values
      - add most probable implementation of virtual methods of FloatConstantGenerator
      
      * Add conditional (FLATBUFFERS_NAN_DEFAULTS) isnan checking
      dd288f71
    • Yong Tang's avatar
      Add repository name to build_defs.bzl (#5104) · 155c5590
      Yong Tang authored
      In flatbuffers, build_defs.bzl has been updated to have the
      bazel rule `flatbuffer_cc_library` defined. Therefore, it should
      be possible to build another application and using `flatbuffer_cc_library`
      directly (by `load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")`)
      
      However, when I tried to do the above, I saw the following errors in bazel:
      ```
      ERROR: /root/.cache/bazel/_bazel_root/c27e9809996ce9a9c0ed8dd79ef0897b/external/arrow/BUILD.bazel:12:1: in deps attribute of cc_library rule @arrow//:arrow_format: target '@arrow//:runtime_cc' does not exist. Since this rule was created by the macro 'flatbuffer_cc_library', the error might have been caused by the macro implementation in /root/.cache/bazel/_bazel_root/c27e9809996ce9a9c0ed8dd79ef0897b/external/com_github_google_flatbuffers/build_defs.bzl:216:16
      ```
      
      The reason for the bazel error was that `//:runtime_cc` and `//:flatc` does not have
      the repo name prefixed.
      
      By prefix `` the above bazel build error could be resolved.
      
      This fix should help other programs to use flatbuffers directly through bazel.
      Signed-off-by: 's avatarYong Tang <yong.tang.github@outlook.com>
      155c5590