function Message::serializeToString
Serialize the message to string.
Return value
string Serialized binary protobuf data.
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ Message.php, line 1540
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 serializeToString() {
$output = new CodedOutputStream($this->byteSize());
$this->serializeToStream($output);
return $output->getData();
}