File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 15
15
use Nejcc \PhpDatatypes \Scalar \Integers \Unsigned \UInt32 ;
16
16
use Nejcc \PhpDatatypes \Scalar \Integers \Unsigned \UInt8 ;
17
17
18
+ /**
19
+ * @param int $value
20
+ * @return Int8
21
+ */
18
22
function int8 (int $ value ): Int8
19
23
{
20
24
return new Int8 ($ value );
21
25
}
22
26
27
+ /**
28
+ * @param int $value
29
+ * @return Int16
30
+ */
23
31
function int16 (int $ value ): Int16
24
32
{
25
33
return new Int16 ($ value );
26
34
}
27
35
36
+ /**
37
+ * @param int $value
38
+ * @return Int32
39
+ */
28
40
function int32 (int $ value ): Int32
29
41
{
30
42
return new Int32 ($ value );
31
43
}
32
44
45
+ /**
46
+ * @param int $value
47
+ * @return Int64
48
+ */
33
49
function int64 (int $ value ): Int64
34
50
{
35
51
return new Int64 ($ value );
36
52
}
37
53
54
+ /**
55
+ * @param int $value
56
+ * @return Int128
57
+ */
38
58
function int128 (int $ value ): Int128
39
59
{
40
60
return new Int128 ($ value );
41
61
}
42
62
63
+ /**
64
+ * @param int $value
65
+ * @return UInt8
66
+ */
43
67
function uint8 (int $ value ): UInt8
44
68
{
45
69
return new UInt8 ($ value );
46
70
}
47
71
72
+ /**
73
+ * @param int $value
74
+ * @return UInt16
75
+ */
48
76
function uint16 (int $ value ): UInt16
49
77
{
50
78
return new UInt16 ($ value );
51
79
}
52
80
81
+ /**
82
+ * @param int $value
83
+ * @return UInt32
84
+ */
53
85
function uint32 (int $ value ): UInt32
54
86
{
55
87
return new UInt32 ($ value );
56
88
}
57
89
90
+ /**
91
+ * @param float $value
92
+ * @return Float32
93
+ */
58
94
function float32 (float $ value ): Float32
59
95
{
60
96
return new Float32 ($ value );
61
97
}
62
98
99
+ /**
100
+ * @param float $value
101
+ * @return Float64
102
+ */
63
103
function float64 (float $ value ): Float64
64
104
{
65
105
return new Float64 ($ value );
You can’t perform that action at this time.
0 commit comments