flatbuffers/php
Armen Baghumian 28a3c939e7 Implement __vector_as_bytes and methods to get [ubyte] efficiently
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.
2016-03-29 14:56:09 +11:00
..
ByteBuffer.php (PHP) fixes getting indirect table, also fixes getInt method on 32bit machine. 2015-12-17 11:35:31 +09:00
Constants.php (PHP) add experimental support for PHP language. 2015-11-18 00:26:39 +09:00
FlatbufferBuilder.php Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
Struct.php (PHP) add experimental support for PHP language. 2015-11-18 00:26:39 +09:00
Table.php Implement __vector_as_bytes and methods to get [ubyte] efficiently 2016-03-29 14:56:09 +11:00