Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
23 | final class LittleEndianReader implements IntegerByteSequenceReader |
||
24 | { |
||
25 | public function read8(ByteReaderInterface $data, int $offset): int |
||
26 | { |
||
27 | return $data[$offset]; |
||
28 | } |
||
29 | |||
30 | public function read16(ByteReaderInterface $data, int $offset): int |
||
31 | { |
||
32 | return ($data[$offset + 1] << 8) | $data[$offset]; |
||
33 | } |
||
34 | |||
35 | public function read32(ByteReaderInterface $data, int $offset): int |
||
41 | } |
||
42 | |||
43 | public function read64(ByteReaderInterface $data, int $offset): UInt64 |
||
51 |