1 | <?php |
||
20 | class ExtendedHeaderMetadata |
||
21 | { |
||
22 | /** |
||
23 | * @var Stream |
||
24 | */ |
||
25 | protected $stream; |
||
26 | |||
27 | /** |
||
28 | * @var int |
||
29 | */ |
||
30 | protected $version; |
||
31 | |||
32 | /** |
||
33 | * @var SynchsafeIntegerFilter |
||
34 | */ |
||
35 | protected $synchsafeIntegerFilter; |
||
36 | |||
37 | /** |
||
38 | * Create ID3v2 extended header metadata object. |
||
39 | * |
||
40 | * @param Stream $stream |
||
41 | * @param int $version |
||
42 | */ |
||
43 | public function __construct(Stream $stream, $version) |
||
49 | |||
50 | /** |
||
51 | * Read ID3v2 extended header size. |
||
52 | * |
||
53 | * @return int |
||
54 | */ |
||
55 | public function readSize() |
||
63 | |||
64 | /** |
||
65 | * Read ID3v2 extended header flags. |
||
66 | * |
||
67 | * @return array |
||
68 | */ |
||
69 | public function readFlags() |
||
89 | |||
90 | /** |
||
91 | * Read ID3v2 extended header padding. |
||
92 | * |
||
93 | * @return int |
||
94 | */ |
||
95 | public function readPadding() |
||
99 | |||
100 | /** |
||
101 | * Read ID3v2 extended header CRC-32 data. |
||
102 | * |
||
103 | * @return int |
||
104 | */ |
||
105 | public function readCrc32() |
||
116 | |||
117 | /** |
||
118 | * Read ID3v2 extended header restrictions. |
||
119 | * |
||
120 | * @return int |
||
121 | */ |
||
122 | public function readRestrictions() |
||
128 | } |
||
129 |