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

Breadcrumb

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

function CodedInputStream::readLittleEndian32

Read 32-bit unsigned integer to $var. If the buffer has less than 4 bytes, return false. Advance buffer with consumed bytes.

Parameters

$var:

File

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

Class

CodedInputStream

Namespace

Google\Protobuf\Internal

Code

public function readLittleEndian32(&$var) {
    $data = null;
    if (!$this->readRaw(4, $data)) {
        return false;
    }
    $var = unpack('V', $data);
    $var = $var[1];
    return true;
}
RSS feed
Powered by Drupal