(&$value)
| 555 | } |
| 556 | |
| 557 | public function readBool(&$value) |
| 558 | { |
| 559 | if ($this->state == TCompactProtocol::STATE_BOOL_READ) { |
| 560 | $value = $this->boolValue; |
| 561 | |
| 562 | return 0; |
| 563 | } elseif ($this->state == TCompactProtocol::STATE_CONTAINER_READ) { |
| 564 | return $this->readByte($value); |
| 565 | } else { |
| 566 | throw new TProtocolException('Invalid state in compact protocol'); |
| 567 | } |
| 568 | } |
| 569 | |
| 570 | public function readI16(&$value) |
| 571 | { |