#include <ext/spl/spl_iterators.h>
#include <Zend/zend_API.h>
#include <Zend/zend_interfaces.h>
#include "protobuf.h"
#include "utf8.h"
Go to the source code of this file.
Macros | |
#define | CASE_TYPE(upb_type, type, c_type, php_type) |
#define | TABLE_KEY_BUF_LENGTH 8 |
Functions | |
for (map_begin_internal(intern, &it);!map_done(&it);map_next(&it)) | |
PHP_PROTO_OBJECT_FREE_END PHP_PROTO_OBJECT_DTOR_END | if (!upb_strtable_init(&intern->table, UPB_CTYPE_UINT64)) |
void | map_begin (zval *map_php, MapIter *iter TSRMLS_DC) |
static void | map_begin_internal (Map *map, MapIter *iter) |
bool | map_done (MapIter *iter) |
void | map_field_create_with_type (const zend_class_entry *ce, upb_fieldtype_t key_type, upb_fieldtype_t value_type, const zend_class_entry *msg_ce, CACHED_VALUE *map_field PHP_PROTO_TSRMLS_DC) |
static HashTable * | map_field_get_gc (zval *object, CACHED_VALUE **table, int *n TSRMLS_DC) |
static bool | map_field_read_dimension (zval *object, zval *key, int type, CACHED_VALUE *retval TSRMLS_DC) |
static bool | map_field_unset_dimension (zval *object, zval *key TSRMLS_DC) |
static void | map_field_write_dimension (zval *object, zval *key, zval *value TSRMLS_DC) |
bool | map_index_set (Map *intern, const char *keyval, int length, upb_value v) |
static void | map_index_unset (Map *intern, const char *keyval, int length) |
const char * | map_iter_key (MapIter *iter, int *len) |
upb_value | map_iter_value (MapIter *iter, int *len) |
void | map_next (MapIter *iter) |
PHP_METHOD (MapField, __construct) | |
PHP_METHOD (MapField, count) | |
PHP_METHOD (MapField, getIterator) | |
PHP_METHOD (MapField, offsetExists) | |
PHP_METHOD (MapField, offsetGet) | |
PHP_METHOD (MapField, offsetSet) | |
PHP_METHOD (MapField, offsetUnset) | |
PHP_METHOD (MapFieldIter, current) | |
PHP_METHOD (MapFieldIter, key) | |
PHP_METHOD (MapFieldIter, next) | |
PHP_METHOD (MapFieldIter, valid) | |
PHP_PROTO_INIT_CLASS_START ("Google\\Protobuf\\Internal\\MapField", Map, map_field) | |
PHP_PROTO_INIT_CLASS_START ("Google\\Protobuf\\Internal\\MapFieldIter", MapIter, map_field_iter) | |
static void | php_proto_map_object_release (void *value) |
static void | php_proto_map_string_release (void *value) |
static bool | table_key (Map *self, zval *key, char *buf, const char **out_key, size_t *out_length TSRMLS_DC) |
void * | upb_value_memory (upb_value *v) |
Variables | |
upb_strtable_uninit & | intern |
MapIter | it |
int | len |
zend_object_handlers * | map_field_handlers |
zend_object_handlers * | map_field_iter_handlers |
static zend_function_entry | map_field_iter_methods [] |
zend_class_entry * | map_field_iter_type |
static zend_function_entry | map_field_methods [] |
zend_class_entry * | map_field_type |
PHP_PROTO_OBJECT_FREE_END PHP_PROTO_OBJECT_DTOR_END intern | self = NULL |
#define CASE_TYPE | ( | upb_type, | |
type, | |||
c_type, | |||
php_type | |||
) |
#define TABLE_KEY_BUF_LENGTH 8 |
Definition at line 88 of file php/ext/google/protobuf/map.c.
Definition at line 207 of file php/ext/google/protobuf/map.c.
PHP_PROTO_OBJECT_FREE_END PHP_PROTO_OBJECT_DTOR_END if | ( | !upb_strtable_init &->, | UPB_CTYPE_UINT64 | ) |
Definition at line 232 of file php/ext/google/protobuf/map.c.
Definition at line 495 of file php/ext/google/protobuf/map.c.
Definition at line 165 of file php/ext/google/protobuf/map.c.
bool map_done | ( | MapIter * | iter | ) |
Definition at line 504 of file php/ext/google/protobuf/map.c.
void map_field_create_with_type | ( | const zend_class_entry * | ce, |
upb_fieldtype_t | key_type, | ||
upb_fieldtype_t | value_type, | ||
const zend_class_entry * | msg_ce, | ||
CACHED_VALUE *map_field | PHP_PROTO_TSRMLS_DC | ||
) |
Definition at line 256 of file php/ext/google/protobuf/map.c.
|
static |
Definition at line 170 of file php/ext/google/protobuf/map.c.
|
static |
Definition at line 273 of file php/ext/google/protobuf/map.c.
|
static |
Definition at line 368 of file php/ext/google/protobuf/map.c.
Definition at line 342 of file php/ext/google/protobuf/map.c.
Definition at line 330 of file php/ext/google/protobuf/map.c.
Definition at line 298 of file php/ext/google/protobuf/map.c.
const char* map_iter_key | ( | MapIter * | iter, |
int * | len | ||
) |
Definition at line 508 of file php/ext/google/protobuf/map.c.
Definition at line 513 of file php/ext/google/protobuf/map.c.
Definition at line 500 of file php/ext/google/protobuf/map.c.
PHP_METHOD | ( | MapField | , |
__construct | |||
) |
Definition at line 391 of file php/ext/google/protobuf/map.c.
PHP_METHOD | ( | MapField | , |
count | |||
) |
Definition at line 472 of file php/ext/google/protobuf/map.c.
PHP_METHOD | ( | MapField | , |
getIterator | |||
) |
Definition at line 482 of file php/ext/google/protobuf/map.c.
PHP_METHOD | ( | MapField | , |
offsetExists | |||
) |
Definition at line 421 of file php/ext/google/protobuf/map.c.
PHP_METHOD | ( | MapField | , |
offsetGet | |||
) |
Definition at line 444 of file php/ext/google/protobuf/map.c.
PHP_METHOD | ( | MapField | , |
offsetSet | |||
) |
Definition at line 454 of file php/ext/google/protobuf/map.c.
PHP_METHOD | ( | MapField | , |
offsetUnset | |||
) |
Definition at line 463 of file php/ext/google/protobuf/map.c.
PHP_METHOD | ( | MapFieldIter | , |
current | |||
) |
Definition at line 561 of file php/ext/google/protobuf/map.c.
PHP_METHOD | ( | MapFieldIter | , |
key | |||
) |
Definition at line 573 of file php/ext/google/protobuf/map.c.
PHP_METHOD | ( | MapFieldIter | , |
next | |||
) |
Definition at line 584 of file php/ext/google/protobuf/map.c.
PHP_METHOD | ( | MapFieldIter | , |
valid | |||
) |
Definition at line 589 of file php/ext/google/protobuf/map.c.
PHP_PROTO_INIT_CLASS_START | ( | "Google\\Protobuf\\Internal\\MapField" | , |
Map | , | ||
map_field | |||
) |
Definition at line 238 of file php/ext/google/protobuf/map.c.
PHP_PROTO_INIT_CLASS_START | ( | "Google\\Protobuf\\Internal\\MapFieldIter" | , |
MapIter | , | ||
map_field_iter | |||
) |
Definition at line 547 of file php/ext/google/protobuf/map.c.
Definition at line 186 of file php/ext/google/protobuf/map.c.
Definition at line 182 of file php/ext/google/protobuf/map.c.
|
static |
Definition at line 89 of file php/ext/google/protobuf/map.c.
Definition at line 52 of file php/ext/google/protobuf/map.c.
upb_strtable_uninit& intern |
Definition at line 222 of file php/ext/google/protobuf/map.c.
MapIter it |
Definition at line 205 of file php/ext/google/protobuf/map.c.
int len |
Definition at line 206 of file php/ext/google/protobuf/map.c.
zend_object_handlers* map_field_handlers |
Definition at line 162 of file php/ext/google/protobuf/map.c.
zend_object_handlers* map_field_iter_handlers |
Definition at line 163 of file php/ext/google/protobuf/map.c.
|
static |
Definition at line 521 of file php/ext/google/protobuf/map.c.
zend_class_entry* map_field_iter_type |
Definition at line 160 of file php/ext/google/protobuf/map.c.
|
static |
Definition at line 139 of file php/ext/google/protobuf/map.c.
zend_class_entry* map_field_type |
Definition at line 159 of file php/ext/google/protobuf/map.c.
Definition at line 543 of file php/ext/google/protobuf/map.c.