@@ 150-164 (lines=15) @@ | ||
147 | * |
|
148 | * @return array |
|
149 | */ |
|
150 | private function decodeDictionary() |
|
151 | { |
|
152 | $output = []; |
|
153 | ||
154 | $this->pointer++; |
|
155 | ||
156 | do { |
|
157 | $key = $this->decodeString(); |
|
158 | $output[$key] = $this->process(); |
|
159 | } while ($this->getCurrentType() !== self::TYPE_END); |
|
160 | ||
161 | $this->pointer++; |
|
162 | ||
163 | return $output; |
|
164 | } |
|
165 | ||
166 | /** |
|
167 | * Decode list. |
|
@@ 173-186 (lines=14) @@ | ||
170 | * |
|
171 | * @return array |
|
172 | */ |
|
173 | private function decodeList() |
|
174 | { |
|
175 | $output = []; |
|
176 | ||
177 | $this->pointer++; |
|
178 | ||
179 | do { |
|
180 | $output[] = $this->process(); |
|
181 | } while ($this->getCurrentType() !== self::TYPE_END); |
|
182 | ||
183 | $this->pointer++; |
|
184 | ||
185 | return $output; |
|
186 | } |
|
187 | } |
|
188 |