1. 31 3月, 2015 1 次提交
  2. 28 3月, 2015 1 次提交
    • J
      Fix Mac ndk-build error on motive, pie_noon, pindrop. · e8598950
      Jason Sanmiya 提交于
      We were looking for 'flatc' in motive/bin/Debug/flatc,
      on Mac. It's actually built to flatbuffers/Debug/flatc.
      
      Tested: OS X Yosemite, ndk-r10d. Also tested on Linux.
      Change-Id: I9f1ecfe00c5f42fd9b6808b5a5da1c920487a4c2
      e8598950
  3. 24 3月, 2015 1 次提交
  4. 14 3月, 2015 3 次提交
  5. 12 3月, 2015 5 次提交
    • B
      Add CreateByteVector function to Go's builder · 6a012634
      Ben Harper 提交于
      This function gets around the inefficiency of populating a [ubyte] vector
      byte by byte. Since ubyte vectors are probably the most commonly used type
      of generic byte buffer, this seems like a worthwhile thing to create a
      fast path for.
      
      Benchmarks show a 6x improvement in throughput on x64.
      
      There is a new test verifying the functionality of the function.
      
      Change-Id: I82e0228ae0f815dd7ea89bf168b8c1925f3ce0d7
      6a012634
    • M
      Make FuzzTest2 fuzzier. · 44644052
      Max Galkin 提交于
      1. Random table fields are now marked deprecated. The deprecation rate is adjustable, default is ~10% of fields.
      2. Vector type previously produced a dummy field, now a trivial ubyte vector is generated instead.
      3. The fuzzed "instances" were previously generated with identical data, now they are randomized: I suppose such was the intent from the beginning, just wasn't implemented.
      
      I ran the new test with a few different settings and random seeds (but only on Windows + VS2015), and it always passed.
      
      Change-Id: I2014686b6680aec24049ccda3f6deffe5205a83e
      44644052
    • M
      Fix for VS 2015 stricter warnings about "shadowed" names. · c3807fa3
      Max Galkin 提交于
      This change renames a few variables to fix the build in VS 2015.
      
      VS 2015 new warnings:
      http://blogs.msdn.com/b/vcblog/archive/2014/11/12/improvements-to-warnings-in-the-c-compiler.aspx
      
      Change-Id: Ic9c3f75ee717f0125960c813df442ed4fbcceb4a
      c3807fa3
    • G
      Implementation of a buffer release strategy. · a360958b
      gregoire-astruc 提交于
      * Tests for Release feature.
      * Check vector_downward.buf_ before passing to deallocator.
      * Assertions.
      * Shared test between unique_ptr and GetBufferPointer()
      * Unnecessary using directives.
      * Reallocate vector if released on clear operation.
      * Use allocator attribute.
      * Renamed `Release()` to `ReleaseBufferPointer()`
      * For consistency with `GetBufferPointer()`
      * Updated documentation for ReleaseBuffer.
      
      Change-Id: I108527778e56ae5127abf9e5b1be6b445ad75cb7
      a360958b
    • L
      Added Copyright headers · 432f3f26
      loverszhaokai 提交于
      Change-Id: I106de8985cea572590d49c896b72c54f33e73bd2
      432f3f26
  6. 10 3月, 2015 1 次提交
  7. 24 2月, 2015 1 次提交
  8. 18 2月, 2015 2 次提交
    • A
    • A
      Added the hash attribute to ints and longs. · d575321e
      Alex Ames 提交于
      FlatBuffer schema files can now optionally specify a hash attribute that
      will allow someone writing json files to enter a string to be hashed
      rather than a specific value. The hashing algorithm to use is specified
      by the schema.
      
      Currently the only algorithms are fnv1 and fnv1a. There are 32 bit and
      64 variatns for each. Additionally, a hashing command line tool was
      added so that you can see what a string will hash to without needing to
      inspect the flatbuffer binary blob.
      
      Change-Id: I0cb359d0e2dc7d2dc1874b446dc19a17cc77109d
      d575321e
  9. 14 2月, 2015 1 次提交
  10. 12 2月, 2015 1 次提交
  11. 10 2月, 2015 6 次提交
  12. 05 2月, 2015 6 次提交
    • W
      Clarified how to create a good pull request. · 1fb0f1ef
      Wouter van Oortmerssen 提交于
      Updated CONTRIBUTING.md with some tips.
      
      Change-Id: Id377621a98804293837fda25ef0758cf988eea37
      1fb0f1ef
    • A
    • W
      Reset minimum alignment when reusing FlatBufferBuilder · 85f64786
      Wouter van Oortmerssen 提交于
      Previously, if you were re-using instances of FlatBufferBuilder
      and an earlier buffer would use a 64bit item where later ones
      do not, you could be wasting space.
      
      Change-Id: Ic8090a38f97ce73194e991ba72bcfae74a7ace9f
      Tested: on Linux.
      85f64786
    • F
      added reuse option for root objects · b0910e75
      Florian Enner 提交于
      getRootAs..() function now has a second implementation that
      accepts an existing object to allow object reuse, much like
      all other methods that refer to objects.
      
      Change-Id: Iffef567c903a130761ef7de98867e5465d29a04d
      b0910e75
    • A
      Added new Android build target and makefile utils. · ff1ac8ab
      Alex Ames 提交于
      Previously Android.mk only had a rule for the Flatbuffers test. There
      is now an empty module definition so that flatbuffers can be included
      as an Android module in other projects.
      
      Additionally, android/jni/include.mk has been added which contains
      some utility functions that can be used by projects using Flatbuffers
      to generate header build rules and set up dependencies.
      
      A sample project has been added to the samples directory to
      demonstrate how to use flatbuffers with Android.
      
      Tested by compiling Android project on Linux.
      
      Change-Id: I25d6da40f6531777b22f7371187e0a2f4e903ad4
      ff1ac8ab
    • P
      Issue #136 · 4d3db992
      pjulien 提交于
      The satellite data of the ``ByteBuffer`` cannot be modified in
      any way and stay thread safe in the presence of concurrent readers.
      
      This implementation is simple and does introduce an allocation, however
      without it multiple readers will quickly and continuously encounter
      ``IndexOutOfBoundsException`` exceptions.
      
      An alternative, but possibly more controversial, implementation would
      be to use ``Unsafe``.  Using ``Unsafe``, it's possible to do an
      array copy with a provided buffer index.
      
      Change-Id: I851d4034e753b3be2931ee2249ec2c82dde43135
      4d3db992
  13. 03 2月, 2015 4 次提交
  14. 29 1月, 2015 1 次提交
  15. 27 1月, 2015 6 次提交