proto library Client - Class CodedInputStream (v5.36.2)

Namespace

Google \ Protobuf \ Internal

Methods

__construct

Parameters
Name Description
buffer mixed
recursion_limit mixed

bufferSize

current

substr

Parameters
Name Description
start mixed
end mixed

readVarint32

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

Parameter
Name Description
var mixed

readVarint64

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

Parameter
Name Description
var mixed

readVarintSizeAsInt

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

Parameter
Name Description
var mixed

readLittleEndian32

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

Parameter
Name Description
var mixed

readLittleEndian64

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

Parameter
Name Description
var mixed

readTag

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

readRaw

Parameters
Name Description
size mixed
buffer mixed

pushLimit

Parameter
Name Description
byte_limit mixed

popLimit

Parameter
Name Description
byte_limit mixed

incrementRecursionDepthAndPushLimit

Parameters
Name Description
byte_limit mixed
old_limit mixed
recursion_budget mixed

decrementRecursionDepthAndPopLimit

Parameter
Name Description
byte_limit mixed

bytesUntilLimit

Constants

MAX_VARINT_BYTES

Value: 10

DEFAULT_RECURSION_LIMIT

Value: 100