function Message::serializeToStream
@ignore
1 call to Message::serializeToStream()
- Message::serializeToString in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ Message.php - Serialize the message to string.
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ Message.php, line 1433
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 serializeToStream(&$output) {
$fields = $this->desc
->getField();
foreach ($fields as $field) {
if (!$this->serializeFieldToStream($output, $field)) {
return false;
}
}
$output->writeRaw($this->unknown, strlen($this->unknown));
return true;
}