Beispiel #1
0
 /**
  * @ignore
  */
 public function parseFromStream($input)
 {
     while (true) {
         $tag = $input->readTag();
         // End of input.  This is a valid place to end, so return true.
         if ($tag === 0) {
             return true;
         }
         $number = GPBWire::getTagFieldNumber($tag);
         $field = $this->desc->getFieldByNumber($number);
         if (!$this->parseFieldFromStream($tag, $input, $field)) {
             return false;
         }
     }
 }