Lines Matching refs:new_cdata
2379 zend_ffi_cdata *new_cdata; in zend_ffi_cdata_clone_obj() local
2381 new_cdata = (zend_ffi_cdata*)zend_ffi_cdata_new(zend_ffi_cdata_ce); in zend_ffi_cdata_clone_obj()
2383 new_cdata->std.handlers = &zend_ffi_cdata_value_handlers; in zend_ffi_cdata_clone_obj()
2385 new_cdata->type = type; in zend_ffi_cdata_clone_obj()
2386 new_cdata->ptr = emalloc(type->size); in zend_ffi_cdata_clone_obj()
2387 memcpy(new_cdata->ptr, old_cdata->ptr, type->size); in zend_ffi_cdata_clone_obj()
2388 new_cdata->flags |= ZEND_FFI_FLAG_OWNED; in zend_ffi_cdata_clone_obj()
2390 return &new_cdata->std; in zend_ffi_cdata_clone_obj()
4152 zend_ffi_cdata *cdata, *new_cdata; in ZEND_METHOD() local
4178 new_cdata = (zend_ffi_cdata*)zend_ffi_cdata_new(zend_ffi_cdata_ce); in ZEND_METHOD()
4179 new_cdata->type = ZEND_FFI_TYPE_MAKE_OWNED(new_type); in ZEND_METHOD()
4180 new_cdata->ptr_holder = cdata->ptr; in ZEND_METHOD()
4181 new_cdata->ptr = &new_cdata->ptr_holder; in ZEND_METHOD()
4192 new_cdata->flags |= ZEND_FFI_FLAG_OWNED; in ZEND_METHOD()
4196 RETURN_OBJ(&new_cdata->std); in ZEND_METHOD()