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

Breadcrumb

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

function CodedInputStream::readVarintSizeAsInt

Read int into $var. If the result is larger than the largest integer, $var will be -1. Advance buffer with consumed bytes.

Parameters

$var:

File

vendor/google/protobuf/src/Google/Protobuf/Internal/CodedInputStream.php, line 190

Class

CodedInputStream

Namespace

Google\Protobuf\Internal

Code

public function readVarintSizeAsInt(&$var) {
    if (!$this->readVarint64($var)) {
        return false;
    }
    $var = (int) $var;
    return true;
}
RSS feed
Powered by Drupal