• Armen Baghumian's avatar
    Implement __vector_as_bytes and methods to get [ubyte] efficiently · 28a3c939
    Armen Baghumian authored
    Currently in order to get a value type of [ubyte] in PHP, iteration is
    necessary which is not efficient. Helper __vector_as_bytes has been
    implemented in order to return the byte arrays in PHP efficiently.
    
    Appropriate methods also been added to use aforementioned method to return
    the byte array. (e.g. get*Bytes()).
    
    The reason the methods are named get*Bytes() and not for instance
    get*ByteArray() is the fact that PHP doesn't support byte arrays and the
    binary safe string implementation in PHP is used to simulate byte arrays
    and since there is chance for PHP users to confuse this with PHP arrays
    the name get*Bytes() has been chosen.
    
    In the future __vector_as_bytebuffer() method can also be implemented to
    return PHP implementation of ByteBuffer.
    28a3c939
Name
Last commit
Last update
..
FlatBuffers.Test Loading commit data...
MyGame Loading commit data...
namespace_test Loading commit data...
prototest Loading commit data...
GoTest.sh Loading commit data...
JavaScriptTest.js Loading commit data...
JavaScriptTest.sh Loading commit data...
JavaTest.bat Loading commit data...
JavaTest.java Loading commit data...
JavaTest.sh Loading commit data...
PythonTest.sh Loading commit data...
generate_code.bat Loading commit data...
generate_code.sh Loading commit data...
go_test.go Loading commit data...
include_test1.fbs Loading commit data...
include_test2.fbs Loading commit data...
monster_test.bfbs Loading commit data...
monster_test.fbs Loading commit data...
monster_test_generated.h Loading commit data...
monster_test_generated.js Loading commit data...
monsterdata_python_wire.mon Loading commit data...
monsterdata_test.golden Loading commit data...
monsterdata_test.json Loading commit data...
monsterdata_test.mon Loading commit data...
phpTest.php Loading commit data...
py_test.py Loading commit data...
test.cpp Loading commit data...
unicode_test.json Loading commit data...