function Message::parseFromStream
@ignore
1 call to Message::parseFromStream()
- Message::mergeFromString in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ Message.php - Parses a protocol buffer contained in a string.
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ Message.php, line 779
Class
- Message
- Parent class of all proto messages. Users should not instantiate this class or extend this class or its child classes by their own. See the comment of specific functions for more details.
Namespace
Google\Protobuf\InternalCode
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);
$this->parseFieldFromStream($tag, $input, $field);
}
}