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

Breadcrumb

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

function CodedInputStream::readRaw

2 calls to CodedInputStream::readRaw()
CodedInputStream::readLittleEndian32 in vendor/google/protobuf/src/Google/Protobuf/Internal/CodedInputStream.php
Read 32-bit unsigned integer to $var. If the buffer has less than 4 bytes, return false. Advance buffer with consumed bytes.
CodedInputStream::readLittleEndian64 in vendor/google/protobuf/src/Google/Protobuf/Internal/CodedInputStream.php
Read 64-bit unsigned integer to $var. If the buffer has less than 8 bytes, return false. Advance buffer with consumed bytes.

File

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

Class

CodedInputStream

Namespace

Google\Protobuf\Internal

Code

public function readRaw($size, &$buffer) {
    $current_buffer_size = 0;
    if ($this->bufferSize() < $size) {
        return false;
    }
    if ($size === 0) {
        $buffer = "";
    }
    else {
        $buffer = substr($this->buffer, $this->current, $size);
        $this->advance($size);
    }
    return true;
}
RSS feed
Powered by Drupal