MCPcopy Create free account
hub / github.com/apache/thrift / readBool

Method readBool

lib/php/lib/Protocol/TCompactProtocol.php:557–568  ·  view source on GitHub ↗
(&$value)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

readByteMethod · 0.95

Tested by

no test coverage detected