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

Breadcrumb

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

function GPBWire::writeBool

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

File

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

Class

GPBWire

Namespace

Google\Protobuf\Internal

Code

public static function writeBool(&$output, $value) {
    if ($value) {
        return $output->writeVarint32(1, true);
    }
    else {
        return $output->writeVarint32(0, true);
    }
}
RSS feed
Powered by Drupal