#include <ext/spl/spl_iterators.h>
#include <Zend/zend_API.h>
#include <Zend/zend_interfaces.h>
#include "protobuf.h"
Go to the source code of this file.
|
| PHP_METHOD (RepeatedField, __construct) |
|
| PHP_METHOD (RepeatedField, append) |
|
| PHP_METHOD (RepeatedField, count) |
|
| PHP_METHOD (RepeatedField, getIterator) |
|
| PHP_METHOD (RepeatedField, offsetExists) |
|
| PHP_METHOD (RepeatedField, offsetGet) |
|
| PHP_METHOD (RepeatedField, offsetSet) |
|
| PHP_METHOD (RepeatedField, offsetUnset) |
|
| PHP_METHOD (RepeatedFieldIter, current) |
|
| PHP_METHOD (RepeatedFieldIter, key) |
|
| PHP_METHOD (RepeatedFieldIter, next) |
|
| PHP_METHOD (RepeatedFieldIter, valid) |
|
static void | php_proto_array_default_release (void *value) |
|
static void | php_proto_array_object_release (void *value) |
|
| PHP_PROTO_INIT_CLASS_START ("Google\\Protobuf\\Internal\\RepeatedField", RepeatedField, repeated_field) |
|
| PHP_PROTO_INIT_CLASS_START ("Google\\Protobuf\\Internal\\RepeatedFieldIter", PHP_PROTO_INIT_CLASS_ENDPHP_METHOD(RepeatedFieldIter, repeated_field_iter) |
|
| php_proto_zval_ptr_dtor (intern->array) |
|
static int | repeated_field_array_init (zval *array, upb_fieldtype_t type, uint size ZEND_FILE_LINE_DC) |
|
static zend_object_value | repeated_field_create (zend_class_entry *ce TSRMLS_DC) |
|
void | repeated_field_create_with_field (zend_class_entry *ce, const upb_fielddef *field, CACHED_VALUE *repeated_field PHP_PROTO_TSRMLS_DC) |
|
void | repeated_field_create_with_type (zend_class_entry *ce, upb_fieldtype_t type, const zend_class_entry *msg_ce, CACHED_VALUE *repeated_field PHP_PROTO_TSRMLS_DC) |
|
static HashTable * | repeated_field_get_gc (zval *object, CACHED_VALUE **table, int *n TSRMLS_DC) |
|
static HashTable * | repeated_field_get_gc (zval *object, zval ***table, int *n TSRMLS_DC) |
|
static int | repeated_field_has_dimension (zval *object, zval *offset TSRMLS_DC) |
|
void * | repeated_field_index_native (RepeatedField *intern, int index TSRMLS_DC) |
|
static zend_object_value | repeated_field_iter_create (zend_class_entry *ce TSRMLS_DC) |
|
void | repeated_field_push_native (RepeatedField *intern, void *value) |
|
static void | repeated_field_write_dimension (zval *object, zval *offset, zval *value TSRMLS_DC) |
|
◆ PHP_METHOD() [1/12]
Constructs an instance of RepeatedField.
- Parameters
-
long | Type of the stored element. |
string | Message/Enum class name (message/enum fields only). |
Definition at line 301 of file array.c.
◆ PHP_METHOD() [2/12]
Append element to the end of the repeated field.
- Parameters
-
object | The element to be added. |
Definition at line 333 of file array.c.
◆ PHP_METHOD() [3/12]
Return the number of stored elements. This will also be called for: count($arr)
- Returns
- long The number of stored elements.
Definition at line 448 of file array.c.
◆ PHP_METHOD() [4/12]
Return the beginning iterator. This will also be called for: foreach($arr)
- Returns
- object Beginning iterator.
Definition at line 463 of file array.c.
◆ PHP_METHOD() [5/12]
Check whether the element at given index exists.
- Parameters
-
long | The index to be checked. |
- Returns
- bool True if the element at the given index exists.
Definition at line 348 of file array.c.
◆ PHP_METHOD() [6/12]
Return the element at the given index. This will also be called for: $ele = $arr[0]
- Parameters
-
long | The index of the element to be fetched. |
- Returns
- object The stored element at given index.
- Exceptions
-
Invalid | type for index. |
Non-existing | index. |
Definition at line 370 of file array.c.
◆ PHP_METHOD() [7/12]
Assign the element at the given index. This will also be called for: $arr []= $ele and $arr[0] = ele
- Parameters
-
long | The index of the element to be assigned. |
object | The element to be assigned. |
- Exceptions
-
Invalid | type for index. |
Non-existing | index. |
Incorrect | type of the element. |
Definition at line 408 of file array.c.
◆ PHP_METHOD() [8/12]
Remove the element at the given index. This will also be called for: unset($arr)
- Parameters
-
long | The index of the element to be removed. |
- Exceptions
-
Invalid | type for index. |
The | element to be removed is not at the end of the RepeatedField. |
Definition at line 424 of file array.c.
◆ PHP_METHOD() [9/12]
◆ PHP_METHOD() [10/12]
◆ PHP_METHOD() [11/12]
◆ PHP_METHOD() [12/12]
◆ php_proto_array_default_release()
static void php_proto_array_default_release |
( |
void * |
value | ) |
|
|
inlinestatic |
◆ php_proto_array_object_release()
static void php_proto_array_object_release |
( |
void * |
value | ) |
|
|
inlinestatic |
◆ PHP_PROTO_INIT_CLASS_START() [1/2]
◆ PHP_PROTO_INIT_CLASS_START() [2/2]
PHP_PROTO_INIT_CLASS_START |
( |
"Google\\Protobuf\\Internal\\RepeatedFieldIter" |
, |
|
|
PHP_PROTO_INIT_CLASS_ENDPHP_METHOD( |
RepeatedFieldIter, |
|
|
repeated_field_iter |
|
|
) |
| |
◆ php_proto_zval_ptr_dtor()
php_proto_zval_ptr_dtor |
( |
intern-> |
array | ) |
|
◆ repeated_field_array_init()
static int repeated_field_array_init |
( |
zval * |
array, |
|
|
upb_fieldtype_t |
type, |
|
|
uint size |
ZEND_FILE_LINE_DC |
|
) |
| |
|
static |
◆ repeated_field_create()
static zend_object_value repeated_field_create |
( |
zend_class_entry *ce |
TSRMLS_DC | ) |
|
|
static |
◆ repeated_field_create_with_field()
◆ repeated_field_create_with_type()
◆ repeated_field_get_gc() [1/2]
static HashTable* repeated_field_get_gc |
( |
zval * |
object, |
|
|
CACHED_VALUE ** |
table, |
|
|
int *n |
TSRMLS_DC |
|
) |
| |
|
static |
◆ repeated_field_get_gc() [2/2]
static HashTable* repeated_field_get_gc |
( |
zval * |
object, |
|
|
zval *** |
table, |
|
|
int *n |
TSRMLS_DC |
|
) |
| |
|
static |
◆ repeated_field_has_dimension()
static int repeated_field_has_dimension |
( |
zval * |
object, |
|
|
zval *offset |
TSRMLS_DC |
|
) |
| |
|
static |
◆ repeated_field_index_native()
◆ repeated_field_iter_create()
static zend_object_value repeated_field_iter_create |
( |
zend_class_entry *ce |
TSRMLS_DC | ) |
|
|
static |
◆ repeated_field_push_native()
◆ repeated_field_write_dimension()
static void repeated_field_write_dimension |
( |
zval * |
object, |
|
|
zval * |
offset, |
|
|
zval *value |
TSRMLS_DC |
|
) |
| |
|
static |
◆ array
◆ msg_ce
const zend_class_entry * msg_ce = NULL |
◆ position
◆ repeated_field
◆ repeated_field_handlers
zend_object_handlers* repeated_field_handlers |
◆ repeated_field_iter_handlers
zend_object_handlers* repeated_field_iter_handlers |
◆ repeated_field_iter_methods
zend_function_entry repeated_field_iter_methods[] |
|
static |
Initial value:
Definition at line 61 of file array.c.
◆ repeated_field_iter_type
zend_class_entry* repeated_field_iter_type |
◆ repeated_field_methods
zend_function_entry repeated_field_methods[] |
|
static |
Initial value:
Definition at line 49 of file array.c.
◆ repeated_field_type
zend_class_entry* repeated_field_type |
◆ type