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

Breadcrumb

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

function GPBWire::readBool

1 call to GPBWire::readBool()
Message::parseFieldFromStreamNoTag in vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php
@ignore

File

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

Class

GPBWire

Namespace

Google\Protobuf\Internal

Code

public static function readBool(&$input, &$value) {
    if (!$input->readVarint64($value)) {
        return false;
    }
    if ($value == 0) {
        $value = false;
    }
    else {
        $value = true;
    }
    return true;
}
RSS feed
Powered by Drupal