Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| PageHintEntry | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\Pdf\Reader\Parser; |
| 6 | |
| 7 | /** |
| 8 | * A single entry from the page offset hint table — ISO 32000-2 §F.4.1. |
| 9 | * |
| 10 | * Each entry describes one page's objects and byte range within the |
| 11 | * linearized file. The values are deltas from the table header's minimums. |
| 12 | */ |
| 13 | final class PageHintEntry |
| 14 | { |
| 15 | public function __construct( |
| 16 | public readonly int $objectCountDelta, |
| 17 | public readonly int $pageLengthDelta, |
| 18 | public readonly int $sharedRefCountDelta, |
| 19 | /** @var list<int> */ |
| 20 | public readonly array $sharedObjIds, |
| 21 | public readonly int $sharedObjNumeratorDelta, |
| 22 | public readonly int $contentStreamOffsetDelta, |
| 23 | public readonly int $contentStreamLengthDelta, |
| 24 | ) {} |
| 25 | } |