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

Breadcrumb

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

function CodedInputStream::__construct

File

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

Class

CodedInputStream

Namespace

Google\Protobuf\Internal

Code

public function __construct($buffer) {
    $start = 0;
    $end = strlen($buffer);
    $this->buffer = $buffer;
    $this->buffer_size_after_limit = 0;
    $this->buffer_end = $end;
    $this->current = $start;
    $this->current_limit = $end;
    $this->legitimate_message_end = false;
    $this->recursion_budget = self::DEFAULT_RECURSION_LIMIT;
    $this->recursion_limit = self::DEFAULT_RECURSION_LIMIT;
    $this->total_bytes_limit = self::DEFAULT_TOTAL_BYTES_LIMIT;
    $this->total_bytes_read = $end - $start;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal