1. 07 1月, 2016 2 次提交
  2. 05 1月, 2016 2 次提交
  3. 30 12月, 2015 3 次提交
  4. 24 12月, 2015 2 次提交
  5. 22 12月, 2015 7 次提交
  6. 17 12月, 2015 2 次提交
  7. 16 12月, 2015 1 次提交
  8. 15 12月, 2015 2 次提交
  9. 13 12月, 2015 1 次提交
  10. 12 12月, 2015 1 次提交
  11. 10 12月, 2015 3 次提交
  12. 08 12月, 2015 8 次提交
  13. 06 12月, 2015 3 次提交
    • A
      Optimize get* operation · f622e599
      Armen Baghumian 提交于
      It's slightly faster to convert the value to signed value in PHP as
      opposed to use pack and unpack.
      
      For 1M get operation the difference is:
      
          getShort in 3.3272678852081 seconds
          getInt in 3.8338589668274 seconds
          getLong in 5.6381590366364 seconds
          getLong (neg) in 5.6149101257324 seconds
      
      vs
      
          getShort in 2.7564418315887 seconds
          getInt in 3.1612701416016 seconds
          getLong in 3.1369340419769 seconds
          getLong (neg) in 3.1478710174561 seconds
      
      And since pack("P") and unpack("q") has been removed now ByteBuffer
      works for PHP >= 5.4
      f622e599
    • A
      Correct the max/min signed/unsigned 32-bit int · 77fbdd28
      Armen Baghumian 提交于
      The test was trying to pack an unsigned int which couldn't fit as a
      signed int and putInt() wasn't doing the validation in the correct range
      77fbdd28
    • O
      Fix to #360 - Updated the general generator (Java/C#) to emit fully qualified... · c9ad6d54
      Oli Wilkinson 提交于
      Fix to #360 - Updated the general generator (Java/C#) to emit fully qualified names where the referenced object isn't directly in this namespace. Added test fbs files to verify compilation.
      c9ad6d54
  14. 05 12月, 2015 3 次提交
    • M
      Add Get Bytes Method Generator for C# · e083e466
      Michael Collins 提交于
      I updated idl_gen_general.cpp to add support for generating a Get Bytes
      method for a vector to the generated C# source code. Given a byte vector
      field named Foo, a method named GetFooBytes() will be generated in the
      C# source code that will return an ArraySegment<byte> value referencing
      the vector data in the underlying ByteBuffer.
      
      I added a method to Table.cs named __vector_as_arraysegment that is used
      by the code generated by the change to the C# generator.
      __vector_as_arraysegment will take the offset of the vector and will
      return the ArraySegment<byte> value corresponding to the bytes that
      store the vector data.
      
      I updated FlatBuffersExampleTests.cs to add tests to validate my
      implementation of Table.__vector_as_arraysegment. I added tests to
      demonstrate that the bytes for the monster's name can be extracted from
      the underlying byte array. I also added tests to show that
      Table.__vector_as_arraysegment returns a null value if the vector is not
      present in the FlatBuffer.
      
      I used the updated flatc.exe program to regenerate the C# source files
      for the MyGame example. The new Monster class includes the GetXXXBytes
      methods to return the byte arrays containing data for vectors.
      e083e466
    • J
      Do not create empty enums. · fe2f8d32
      Jason Sanmiya 提交于
      Mac build issued a warning for enum{}.
      
      Change-Id: I9cab958538ac3cec61aeae289d1da0118ecac15f
      Tested: Mac build no longer issues warnings.
      fe2f8d32
    • W
      Added --gen-all to generate code for a schema and all its includes. · 45bda6e0
      Wouter van Oortmerssen 提交于
      Also refactored the way options are stored.
      
      Change-Id: I709ac908cd2aba396c9c282725cf1d42ccce0882
      Tested: on Linux.
      45bda6e0