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

Method readMapBegin

lib/php/lib/Protocol/TCompactProtocol.php:510–523  ·  view source on GitHub ↗
(&$key_type, &$val_type, &$size)

Source from the content-addressed store, hash-verified

508 }
509
510 public function readMapBegin(&$key_type, &$val_type, &$size)
511 {
512 $result = $this->readVarint($size);
513 $types = 0;
514 if ($size > 0) {
515 $result += $this->readUByte($types);
516 }
517 $val_type = $this->getTType($types);
518 $key_type = $this->getTType($types >> 4);
519 $this->containers[] = $this->state;
520 $this->state = TCompactProtocol::STATE_CONTAINER_READ;
521
522 return $result;
523 }
524
525 public function readCollectionEnd()
526 {

Callers

nothing calls this directly

Calls 3

readVarintMethod · 0.95
readUByteMethod · 0.95
getTTypeMethod · 0.95

Tested by

no test coverage detected