| @@ 311-314 (lines=4) @@ | ||
| 308 | 'definition' => [], |
|
| 309 | ]; |
|
| 310 | $length = $this->readShort(); |
|
| 311 | for($i = 0; $i < $length; ++$i){ |
|
| 312 | $key = $this->readString(); |
|
| 313 | $data['definition'][$key] = $this->readType(); |
|
| 314 | } |
|
| 315 | return $data; |
|
| 316 | case Type\Base::TUPLE: |
|
| 317 | $data = [ |
|
| @@ 322-324 (lines=3) @@ | ||
| 319 | 'definition' => [], |
|
| 320 | ]; |
|
| 321 | $length = $this->readShort(); |
|
| 322 | for($i = 0; $i < $length; ++$i){ |
|
| 323 | $data['definition'][] = $this->readType(); |
|
| 324 | } |
|
| 325 | return $data; |
|
| 326 | default: |
|
| 327 | return $type; |
|