Copied!
CloneableInstantiable
Constants
public Google\Protobuf\Internal\CodedInputStream::DEFAULT_RECURSION_LIMIT = 100
public Google\Protobuf\Internal\CodedInputStream::DEFAULT_TOTAL_BYTES_LIMIT = 33554432
public Google\Protobuf\Internal\CodedInputStream::MAX_VARINT_BYTES = 10
Methods
public __construct( $buffer)
public bufferSize()
public bytesUntilLimit()
public current()
public decrementRecursionDepthAndPopLimit( $byte_limit)
public incrementRecursionDepthAndPushLimit( $byte_limit, $old_limit, $recursion_budget)
public popLimit( $byte_limit)
public pushLimit( $byte_limit)
public readLittleEndian32( $var)
 

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

  • param mixed $var
public readLittleEndian64( $var)
 

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

  • param mixed $var
public readRaw( $size, $buffer)
public readTag()
 

Read tag into $var. Advance buffer with consumed bytes.

public readVarint32( $var)
 

Read uint32 into $var. Advance buffer with consumed bytes. If the contained varint is larger than 32 bits, discard the high order bits.

  • param mixed $var
public readVarint64( $var)
 

Read Uint64 into $var. Advance buffer with consumed bytes.

  • param mixed $var
public readVarintSizeAsInt( $var)
 

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

  • param mixed $var
public substr( $start, $end)
Properties
private $buffer = NULL
private $buffer_end = NULL
private $buffer_size_after_limit = NULL
private $current = NULL
private $current_limit = NULL
private $legitimate_message_end = NULL
private $recursion_budget = NULL
private $recursion_limit = NULL
private $total_bytes_limit = NULL
private $total_bytes_read = NULL
Methods
private advance( $amount)
private consumedEntireMessage()
private recomputeBufferLimits()
© 2025 Bruce Wells