1 | <?php |
||
12 | class LZXC extends Header |
||
13 | { |
||
14 | /** |
||
15 | * The header version. |
||
16 | * |
||
17 | * @var int |
||
18 | */ |
||
19 | protected $version; |
||
20 | |||
21 | /** |
||
22 | * The LZX reset interval. |
||
23 | * |
||
24 | * @var int |
||
25 | */ |
||
26 | protected $resetInterval; |
||
27 | |||
28 | /** |
||
29 | * The window size in 32KB blocks. |
||
30 | * |
||
31 | * @var int |
||
32 | */ |
||
33 | protected $windowSize; |
||
34 | |||
35 | /** |
||
36 | * The cache size. |
||
37 | * |
||
38 | * @var int |
||
39 | */ |
||
40 | protected $cacheSize; |
||
41 | |||
42 | /** |
||
43 | * Initializes the instance. |
||
44 | * |
||
45 | * @param Reader $reader The reader that provides the data. |
||
46 | * |
||
47 | * @throws UnexpectedHeaderException Throws an UnexpectedHeaderException if the header signature is not valid. |
||
48 | * @throws Exception Throws an Exception in case of errors. |
||
49 | */ |
||
50 | 4 | public function __construct(Reader $reader) |
|
68 | |||
69 | /** |
||
70 | * Get the header version. |
||
71 | * |
||
72 | * @return int |
||
73 | */ |
||
74 | public function getVersion() |
||
75 | { |
||
76 | return $this->version; |
||
77 | } |
||
78 | |||
79 | /** |
||
80 | * Get the LZX reset interval. |
||
81 | * |
||
82 | * @return int |
||
83 | */ |
||
84 | 4 | public function getResetInterval() |
|
88 | |||
89 | /** |
||
90 | * Get the window size in 32KB blocks. |
||
91 | * |
||
92 | * @return int |
||
93 | */ |
||
94 | 4 | public function getWindowSize() |
|
98 | |||
99 | /** |
||
100 | * Get the cache size. |
||
101 | * |
||
102 | * @return int |
||
103 | */ |
||
104 | 4 | public function getCacheSize() |
|
108 | } |
||
109 |