public function sizedByteArray()
    {
        $start = $this->space;
        $length = $this->bb->capacity() - $this->space;

        $result = str_repeat("\0", $length);
        $this->bb->setPosition($start);
        $this->bb->getX($result);

        return $result;
    }
public function sizedByteArray()
    {
        $start = $this->space;
        $length = $this->bb->capacity() - $this->space;

        $result = str_repeat("\0", $length);
        $this->bb->setPosition($start);
        $this->bb->getX($result);

        return $result;
    }
public function sizedByteArray ( ) { $ start = $ this -> space ; $ length = $ this -> bb -> capacity ( ) - $ this -> space ; $ result = str_repeat ( "\0" , $ length ) ; $ this -> bb -> setPosition ( $ start ) ; $ this -> bb -> getX ( $ result ) ; return $ result ; }
Utility function to copy and return the FlatBuffer data from the
underlying ByteBuffer.
@return string A string (representing a byte[]) that contains a copy
of the FlatBuffer data.
Utility function to copy and return the FlatBuffer data from the underlying ByteBuffer .