• 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
CMake Loading commit data...
android Loading commit data...
biicode Loading commit data...
build_ide Loading commit data...
docs Loading commit data...
go Loading commit data...
include/flatbuffers Loading commit data...
java Loading commit data...
js Loading commit data...
net/FlatBuffers Loading commit data...
php Loading commit data...
python Loading commit data...
reflection Loading commit data...
samples Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING Loading commit data...
LICENSE.txt Loading commit data...
biicode.conf Loading commit data...
composer.json Loading commit data...
readme.md Loading commit data...