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

Breadcrumb

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

function GPBWire::writeBytes

2 calls to GPBWire::writeBytes()
GPBWire::serializeFieldToStream in vendor/google/protobuf/src/Google/Protobuf/Internal/GPBWire.php
GPBWire::writeString in vendor/google/protobuf/src/Google/Protobuf/Internal/GPBWire.php

File

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

Class

GPBWire

Namespace

Google\Protobuf\Internal

Code

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