Conditions | 2 |
Paths | 2 |
Total Lines | 22 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function init(): void |
||
24 | { |
||
25 | $this->buffer = new ByteBuffer; |
||
26 | |||
27 | for ($i = 0; $i < $this->revs; ++$i) { |
||
28 | $this->buffer |
||
29 | ->appendInt8(1) |
||
30 | ->appendInt16(1) |
||
31 | ->appendInt32(1) |
||
32 | ->appendInt64(1) |
||
33 | ->appendUint8(1) |
||
34 | ->appendUint16(1) |
||
35 | ->appendUint32(1) |
||
36 | ->appendUint64(1) |
||
37 | ->appendFloat(1.1) |
||
38 | ->appendFloat(-1.1) |
||
39 | ->appendFloat(\M_PI) |
||
40 | ->appendDouble(1.1) |
||
41 | ->appendDouble(-1.1) |
||
42 | ->appendDouble(\M_PI) |
||
43 | ->append('some string') |
||
44 | ->append("other string") |
||
45 | ; |
||
75 |