class CodedInputStream (View source)

Constants

MAX_VARINT_BYTES

DEFAULT_RECURSION_LIMIT

DEFAULT_TOTAL_BYTES_LIMIT

Methods

__construct($buffer)

No description

bufferSize()

No description

current()

No description

substr($start, $end)

No description

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.

readVarint64($var)

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

readVarintSizeAsInt($var)

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

readLittleEndian32($var)

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

readLittleEndian64($var)

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

readTag()

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

readRaw($size, $buffer)

No description

pushLimit($byte_limit)

No description

popLimit($byte_limit)

No description

incrementRecursionDepthAndPushLimit($byte_limit, $old_limit, $recursion_budget)

No description

decrementRecursionDepthAndPopLimit($byte_limit)

No description

bytesUntilLimit()

No description

Details

__construct($buffer)

No description

Parameters

$buffer

bufferSize()

No description

current()

No description

substr($start, $end)

No description

Parameters

$start
$end

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.

Parameters

$var

readVarint64($var)

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

Parameters

$var

readVarintSizeAsInt($var)

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

Parameters

$var

readLittleEndian32($var)

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

Parameters

$var

readLittleEndian64($var)

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

Parameters

$var

readTag()

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

readRaw($size, $buffer)

No description

Parameters

$size
$buffer

pushLimit($byte_limit)

No description

Parameters

$byte_limit

popLimit($byte_limit)

No description

Parameters

$byte_limit

incrementRecursionDepthAndPushLimit($byte_limit, $old_limit, $recursion_budget)

No description

Parameters

$byte_limit
$old_limit
$recursion_budget

decrementRecursionDepthAndPopLimit($byte_limit)

No description

Parameters

$byte_limit

bytesUntilLimit()

No description