xref: /PHP-8.3/ext/spl/spl_fixedarray_arginfo.h (revision adb45a63)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 0b508ad6499b70c92bf25960b30fefa913532a3c */
3 
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplFixedArray___construct, 0, 0, 0)
5 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, size, IS_LONG, 0, "0")
6 ZEND_END_ARG_INFO()
7 
8 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplFixedArray___wakeup, 0, 0, IS_VOID, 0)
9 ZEND_END_ARG_INFO()
10 
11 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_SplFixedArray___serialize, 0, 0, IS_ARRAY, 0)
12 ZEND_END_ARG_INFO()
13 
14 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_SplFixedArray___unserialize, 0, 1, IS_VOID, 0)
15 	ZEND_ARG_TYPE_INFO(0, data, IS_ARRAY, 0)
16 ZEND_END_ARG_INFO()
17 
18 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplFixedArray_count, 0, 0, IS_LONG, 0)
19 ZEND_END_ARG_INFO()
20 
21 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplFixedArray_toArray, 0, 0, IS_ARRAY, 0)
22 ZEND_END_ARG_INFO()
23 
24 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_SplFixedArray_fromArray, 0, 1, SplFixedArray, 0)
25 	ZEND_ARG_TYPE_INFO(0, array, IS_ARRAY, 0)
26 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserveKeys, _IS_BOOL, 0, "true")
27 ZEND_END_ARG_INFO()
28 
29 #define arginfo_class_SplFixedArray_getSize arginfo_class_SplFixedArray_count
30 
31 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplFixedArray_setSize, 0, 0, 1)
32 	ZEND_ARG_TYPE_INFO(0, size, IS_LONG, 0)
33 ZEND_END_ARG_INFO()
34 
35 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplFixedArray_offsetExists, 0, 1, _IS_BOOL, 0)
36 	ZEND_ARG_INFO(0, index)
37 ZEND_END_ARG_INFO()
38 
39 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplFixedArray_offsetGet, 0, 1, IS_MIXED, 0)
40 	ZEND_ARG_INFO(0, index)
41 ZEND_END_ARG_INFO()
42 
43 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplFixedArray_offsetSet, 0, 2, IS_VOID, 0)
44 	ZEND_ARG_INFO(0, index)
45 	ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
46 ZEND_END_ARG_INFO()
47 
48 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplFixedArray_offsetUnset, 0, 1, IS_VOID, 0)
49 	ZEND_ARG_INFO(0, index)
50 ZEND_END_ARG_INFO()
51 
52 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_SplFixedArray_getIterator, 0, 0, Iterator, 0)
53 ZEND_END_ARG_INFO()
54 
55 #define arginfo_class_SplFixedArray_jsonSerialize arginfo_class_SplFixedArray___serialize
56 
57 
58 ZEND_METHOD(SplFixedArray, __construct);
59 ZEND_METHOD(SplFixedArray, __wakeup);
60 ZEND_METHOD(SplFixedArray, __serialize);
61 ZEND_METHOD(SplFixedArray, __unserialize);
62 ZEND_METHOD(SplFixedArray, count);
63 ZEND_METHOD(SplFixedArray, toArray);
64 ZEND_METHOD(SplFixedArray, fromArray);
65 ZEND_METHOD(SplFixedArray, getSize);
66 ZEND_METHOD(SplFixedArray, setSize);
67 ZEND_METHOD(SplFixedArray, offsetExists);
68 ZEND_METHOD(SplFixedArray, offsetGet);
69 ZEND_METHOD(SplFixedArray, offsetSet);
70 ZEND_METHOD(SplFixedArray, offsetUnset);
71 ZEND_METHOD(SplFixedArray, getIterator);
72 ZEND_METHOD(SplFixedArray, jsonSerialize);
73 
74 
75 static const zend_function_entry class_SplFixedArray_methods[] = {
76 	ZEND_ME(SplFixedArray, __construct, arginfo_class_SplFixedArray___construct, ZEND_ACC_PUBLIC)
77 	ZEND_ME(SplFixedArray, __wakeup, arginfo_class_SplFixedArray___wakeup, ZEND_ACC_PUBLIC)
78 	ZEND_ME(SplFixedArray, __serialize, arginfo_class_SplFixedArray___serialize, ZEND_ACC_PUBLIC)
79 	ZEND_ME(SplFixedArray, __unserialize, arginfo_class_SplFixedArray___unserialize, ZEND_ACC_PUBLIC)
80 	ZEND_ME(SplFixedArray, count, arginfo_class_SplFixedArray_count, ZEND_ACC_PUBLIC)
81 	ZEND_ME(SplFixedArray, toArray, arginfo_class_SplFixedArray_toArray, ZEND_ACC_PUBLIC)
82 	ZEND_ME(SplFixedArray, fromArray, arginfo_class_SplFixedArray_fromArray, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
83 	ZEND_ME(SplFixedArray, getSize, arginfo_class_SplFixedArray_getSize, ZEND_ACC_PUBLIC)
84 	ZEND_ME(SplFixedArray, setSize, arginfo_class_SplFixedArray_setSize, ZEND_ACC_PUBLIC)
85 	ZEND_ME(SplFixedArray, offsetExists, arginfo_class_SplFixedArray_offsetExists, ZEND_ACC_PUBLIC)
86 	ZEND_ME(SplFixedArray, offsetGet, arginfo_class_SplFixedArray_offsetGet, ZEND_ACC_PUBLIC)
87 	ZEND_ME(SplFixedArray, offsetSet, arginfo_class_SplFixedArray_offsetSet, ZEND_ACC_PUBLIC)
88 	ZEND_ME(SplFixedArray, offsetUnset, arginfo_class_SplFixedArray_offsetUnset, ZEND_ACC_PUBLIC)
89 	ZEND_ME(SplFixedArray, getIterator, arginfo_class_SplFixedArray_getIterator, ZEND_ACC_PUBLIC)
90 	ZEND_ME(SplFixedArray, jsonSerialize, arginfo_class_SplFixedArray_jsonSerialize, ZEND_ACC_PUBLIC)
91 	ZEND_FE_END
92 };
93 
register_class_SplFixedArray(zend_class_entry * class_entry_IteratorAggregate,zend_class_entry * class_entry_ArrayAccess,zend_class_entry * class_entry_Countable,zend_class_entry * class_entry_JsonSerializable)94 static zend_class_entry *register_class_SplFixedArray(zend_class_entry *class_entry_IteratorAggregate, zend_class_entry *class_entry_ArrayAccess, zend_class_entry *class_entry_Countable, zend_class_entry *class_entry_JsonSerializable)
95 {
96 	zend_class_entry ce, *class_entry;
97 
98 	INIT_CLASS_ENTRY(ce, "SplFixedArray", class_SplFixedArray_methods);
99 	class_entry = zend_register_internal_class_ex(&ce, NULL);
100 	zend_class_implements(class_entry, 4, class_entry_IteratorAggregate, class_entry_ArrayAccess, class_entry_Countable, class_entry_JsonSerializable);
101 
102 	return class_entry;
103 }
104