Home
last modified time | relevance | path

Searched refs:upb_val (Results 1 – 3 of 3) sorted by relevance

/third_party/protobuf/php/ext/google/protobuf/
Dconvert.c351 bool Convert_PhpToUpb(zval *php_val, upb_msgval *upb_val, upb_fieldtype_t type, in Convert_PhpToUpb() argument
361 return Convert_PhpToInt64(php_val, &upb_val->int64_val); in Convert_PhpToUpb()
367 upb_val->int32_val = i64; in Convert_PhpToUpb()
373 upb_val->uint64_val = i64; in Convert_PhpToUpb()
379 upb_val->uint32_val = i64; in Convert_PhpToUpb()
382 return to_double(php_val, &upb_val->double_val); in Convert_PhpToUpb()
384 if (!to_double(php_val, &upb_val->double_val)) return false; in Convert_PhpToUpb()
385 upb_val->float_val = upb_val->double_val; in Convert_PhpToUpb()
388 return to_bool(php_val, &upb_val->bool_val); in Convert_PhpToUpb()
407 upb_val->str_val = upb_strview_make(ptr, size); in Convert_PhpToUpb()
[all …]
Dmap.c154 upb_msgval upb_val; in MapField_GetUpbMap() local
162 !Convert_PhpToUpbAutoWrap(php_val, &upb_val, val_type, desc, arena)) { in MapField_GetUpbMap()
166 upb_map_set(map, upb_key, upb_val, arena); in MapField_GetUpbMap()
278 upb_msgval upb_key, upb_val; in PHP_METHOD() local
285 if (!upb_map_get(intern->map, upb_key, &upb_val)) { in PHP_METHOD()
290 Convert_UpbToPhp(upb_val, &ret, intern->val_type, intern->desc, &intern->arena); in PHP_METHOD()
311 upb_msgval upb_key, upb_val; in PHP_METHOD() local
315 !Convert_PhpToUpb(val, &upb_val, intern->val_type, intern->desc, arena)) { in PHP_METHOD()
319 upb_map_set(intern->map, upb_key, upb_val, arena); in PHP_METHOD()
503 upb_msgval upb_val = upb_mapiter_value(field->map, intern->position); in PHP_METHOD() local
[all …]
Dconvert.h49 bool Convert_PhpToUpb(zval *php_val, upb_msgval *upb_val, upb_fieldtype_t type,
59 bool Convert_PhpToUpbAutoWrap(zval *val, upb_msgval *upb_val,
67 void Convert_UpbToPhp(upb_msgval upb_val, zval *php_val, upb_fieldtype_t type,