($value)
| 310 | } |
| 311 | |
| 312 | public function writeBool($value) |
| 313 | { |
| 314 | if ($this->state == TCompactProtocol::STATE_BOOL_WRITE) { |
| 315 | $ctype = TCompactProtocol::COMPACT_FALSE; |
| 316 | if ($value) { |
| 317 | $ctype = TCompactProtocol::COMPACT_TRUE; |
| 318 | } |
| 319 | |
| 320 | return $this->writeFieldHeader($ctype, $this->boolFid); |
| 321 | } elseif ($this->state == TCompactProtocol::STATE_CONTAINER_WRITE) { |
| 322 | return $this->writeByte($value ? 1 : 0); |
| 323 | } else { |
| 324 | throw new TProtocolException('Invalid state in compact protocol'); |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | public function writeByte($value) |
| 329 | { |
nothing calls this directly
no test coverage detected