Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | final class LittleEndianReader implements IntegerByteSequenceReader |
||
20 | { |
||
21 | public function read8(ByteReaderInterface $data, int $offset): int |
||
22 | { |
||
23 | return $data[$offset]; |
||
24 | } |
||
25 | |||
26 | public function read16(ByteReaderInterface $data, int $offset): int |
||
27 | { |
||
28 | return ($data[$offset + 1] << 8) | $data[$offset]; |
||
29 | } |
||
30 | |||
31 | public function read32(ByteReaderInterface $data, int $offset): int |
||
37 | } |
||
38 | |||
39 | public function read64(ByteReaderInterface $data, int $offset): UInt64 |
||
47 |