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

Method readFieldBegin

lib/php/lib/Protocol/TJSONProtocol.php:630–642  ·  view source on GitHub ↗
(&$name, &$fieldType, &$fieldId)

Source from the content-addressed store, hash-verified

628 }
629
630 public function readFieldBegin(&$name, &$fieldType, &$fieldId)
631 {
632 $ch = $this->reader_->peek();
633 $name = "";
634
635 if (substr($ch, 0, 1) == self::RBRACE) {
636 $fieldType = TType::STOP;
637 } else {
638 $fieldId = $this->readJSONInteger();
639 $this->readJSONObjectStart();
640 $fieldType = $this->getTypeIDForTypeName($this->readJSONString(false));
641 }
642 }
643
644 public function readFieldEnd()
645 {

Callers

nothing calls this directly

Calls 5

readJSONIntegerMethod · 0.95
readJSONObjectStartMethod · 0.95
getTypeIDForTypeNameMethod · 0.95
readJSONStringMethod · 0.95
peekMethod · 0.45

Tested by

no test coverage detected