Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GPBWire.php

function GPBWire::writeMessage

1 call to GPBWire::writeMessage()
GPBWire::serializeFieldToStream in vendor/google/protobuf/src/Google/Protobuf/Internal/GPBWire.php

File

vendor/google/protobuf/src/Google/Protobuf/Internal/GPBWire.php, line 364

Class

GPBWire

Namespace

Google\Protobuf\Internal

Code

public static function writeMessage(&$output, $value) {
    $size = $value->byteSize();
    if (!$output->writeVarint32($size, true)) {
        return false;
    }
    return $value->serializeToStream($output);
}
RSS feed
Powered by Drupal