| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function init(IsoFile $isoFile, int &$offset): void |
||
| 38 | { |
||
| 39 | if ($this->bytes === null) { |
||
| 40 | return; |
||
| 41 | } |
||
| 42 | |||
| 43 | $unused = $this->bytes[$offset]; |
||
| 44 | $offset++; |
||
| 45 | |||
| 46 | $this->systemID = Buffer::readAString($this->bytes, 32, $offset); |
||
| 47 | $this->volPartitionID = Buffer::readDString($this->bytes, 32, $offset); |
||
| 48 | |||
| 49 | $this->volPartitionLocation = Buffer::readMSB($this->bytes, 8, $offset); |
||
| 50 | $this->volPartitionSize = Buffer::readMSB($this->bytes, 8, $offset); |
||
| 51 | |||
| 52 | // free some space... |
||
| 53 | $this->bytes = null; |
||
| 54 | unset($unused); |
||
| 55 | } |
||
| 57 |