#include "convert.h"#include <php.h>#include <Zend/zend_exceptions.h>#include "array.h"#include "map.h"#include "message.h"#include "php-upb.h"#include "protobuf.h"
Go to the source code of this file.
Macros | |
| #define | CASE(descriptor_type, type) |
Functions | |
| static bool | buftoint64 (const char *ptr, const char *end, int64_t *val) |
| static bool | buftouint64 (const char *ptr, const char *end, uint64_t *val) |
| void | Convert_ModuleInit (void) |
| bool | Convert_PhpToInt64 (const zval *php_val, int64_t *i64) |
| bool | Convert_PhpToUpb (zval *php_val, upb_msgval *upb_val, TypeInfo type, upb_arena *arena) |
| bool | Convert_PhpToUpbAutoWrap (zval *val, upb_msgval *upb_val, TypeInfo type, upb_arena *arena) |
| void | Convert_UpbToPhp (upb_msgval upb_val, zval *php_val, TypeInfo type, zval *arena) |
| upb_fieldtype_t | pbphp_dtype_to_type (upb_descriptortype_t type) |
| PHP_METHOD (Util, checkBool) | |
| PHP_METHOD (Util, checkBytes) | |
| PHP_METHOD (Util, checkDouble) | |
| PHP_METHOD (Util, checkEnum) | |
| PHP_METHOD (Util, checkFloat) | |
| PHP_METHOD (Util, checkInt32) | |
| PHP_METHOD (Util, checkInt64) | |
| PHP_METHOD (Util, checkMapField) | |
| PHP_METHOD (Util, checkMessage) | |
| PHP_METHOD (Util, checkRepeatedField) | |
| PHP_METHOD (Util, checkString) | |
| PHP_METHOD (Util, checkUint32) | |
| PHP_METHOD (Util, checkUint64) | |
| static void | throw_conversion_exception (const char *to, const zval *zv) |
| static bool | to_bool (zval *from, bool *to) |
| static bool | to_double (zval *php_val, double *dbl) |
| static bool | to_string (zval *from) |
Variables | |
| static zend_class_entry * | GPBUtil_class_entry |
| static zend_function_entry | util_methods [] |
| #define CASE | ( | descriptor_type, | |
| type | |||
| ) |
Definition at line 218 of file protobuf/php/ext/google/protobuf/convert.c.
Definition at line 189 of file protobuf/php/ext/google/protobuf/convert.c.
| void Convert_ModuleInit | ( | void | ) |
Definition at line 506 of file protobuf/php/ext/google/protobuf/convert.c.
Definition at line 247 of file protobuf/php/ext/google/protobuf/convert.c.
| bool Convert_PhpToUpb | ( | zval * | php_val, |
| upb_msgval * | upb_val, | ||
| TypeInfo | type, | ||
| upb_arena * | arena | ||
| ) |
Definition at line 356 of file protobuf/php/ext/google/protobuf/convert.c.
| bool Convert_PhpToUpbAutoWrap | ( | zval * | val, |
| upb_msgval * | upb_val, | ||
| TypeInfo | type, | ||
| upb_arena * | arena | ||
| ) |
Definition at line 482 of file protobuf/php/ext/google/protobuf/convert.c.
| void Convert_UpbToPhp | ( | upb_msgval | upb_val, |
| zval * | php_val, | ||
| TypeInfo | type, | ||
| zval * | arena | ||
| ) |
Definition at line 424 of file protobuf/php/ext/google/protobuf/convert.c.
| upb_fieldtype_t pbphp_dtype_to_type | ( | upb_descriptortype_t | type | ) |
Definition at line 156 of file protobuf/php/ext/google/protobuf/convert.c.
| PHP_METHOD | ( | Util | , |
| checkBool | |||
| ) |
Definition at line 63 of file protobuf/php/ext/google/protobuf/convert.c.
| PHP_METHOD | ( | Util | , |
| checkBytes | |||
| ) |
Definition at line 65 of file protobuf/php/ext/google/protobuf/convert.c.
| PHP_METHOD | ( | Util | , |
| checkDouble | |||
| ) |
Definition at line 62 of file protobuf/php/ext/google/protobuf/convert.c.
| PHP_METHOD | ( | Util | , |
| checkEnum | |||
| ) |
Definition at line 60 of file protobuf/php/ext/google/protobuf/convert.c.
| PHP_METHOD | ( | Util | , |
| checkFloat | |||
| ) |
Definition at line 61 of file protobuf/php/ext/google/protobuf/convert.c.
| PHP_METHOD | ( | Util | , |
| checkInt32 | |||
| ) |
Definition at line 56 of file protobuf/php/ext/google/protobuf/convert.c.
| PHP_METHOD | ( | Util | , |
| checkInt64 | |||
| ) |
Definition at line 58 of file protobuf/php/ext/google/protobuf/convert.c.
| PHP_METHOD | ( | Util | , |
| checkMapField | |||
| ) |
Definition at line 73 of file protobuf/php/ext/google/protobuf/convert.c.
| PHP_METHOD | ( | Util | , |
| checkMessage | |||
| ) |
Definition at line 66 of file protobuf/php/ext/google/protobuf/convert.c.
| PHP_METHOD | ( | Util | , |
| checkRepeatedField | |||
| ) |
Definition at line 86 of file protobuf/php/ext/google/protobuf/convert.c.
| PHP_METHOD | ( | Util | , |
| checkString | |||
| ) |
Definition at line 64 of file protobuf/php/ext/google/protobuf/convert.c.
| PHP_METHOD | ( | Util | , |
| checkUint32 | |||
| ) |
Definition at line 57 of file protobuf/php/ext/google/protobuf/convert.c.
| PHP_METHOD | ( | Util | , |
| checkUint64 | |||
| ) |
Definition at line 59 of file protobuf/php/ext/google/protobuf/convert.c.
Definition at line 236 of file protobuf/php/ext/google/protobuf/convert.c.
Definition at line 305 of file protobuf/php/ext/google/protobuf/convert.c.
|
static |
Definition at line 277 of file protobuf/php/ext/google/protobuf/convert.c.
|
static |
Definition at line 333 of file protobuf/php/ext/google/protobuf/convert.c.
|
static |
Definition at line 48 of file protobuf/php/ext/google/protobuf/convert.c.
|
static |
Definition at line 122 of file protobuf/php/ext/google/protobuf/convert.c.