1 | <?php |
||
7 | class Single implements TypeInterface |
||
8 | { |
||
9 | /** |
||
10 | * Returns a 4-bytes floating-point |
||
11 | * |
||
12 | * @param \PhpBinaryReader\BinaryReader $br |
||
13 | * @param null $length |
||
14 | * |
||
15 | * @return float |
||
16 | * @throws \OutOfBoundsException |
||
17 | */ |
||
18 | 14 | public function read(BinaryReader &$br, $length = null) |
|
40 | |||
41 | /** |
||
42 | * @param \PhpBinaryReader\BinaryReader $br |
||
43 | * @param int $data |
||
44 | * |
||
45 | * @return int |
||
46 | */ |
||
47 | 4 | private function bitReader(BinaryReader $br, $data) |
|
55 | } |
||
56 |