CodedInputStream
class CodedInputStream (View source)
Constants
MAX_VARINT_BYTES |
|
DEFAULT_RECURSION_LIMIT |
|
DEFAULT_TOTAL_BYTES_LIMIT |
|
Methods
No description
No description
No description
No description
Read uint32 into $var. Advance buffer with consumed bytes. If the contained varint is larger than 32 bits, discard the high order bits.
Read Uint64 into $var. Advance buffer with consumed bytes.
Read int into $var. If the result is larger than the largest integer, $var will be -1. Advance buffer with consumed bytes.
Read 32-bit unsigned integer to $var. If the buffer has less than 4 bytes, return false. Advance buffer with consumed bytes.
Read 64-bit unsigned integer to $var. If the buffer has less than 8 bytes, return false. Advance buffer with consumed bytes.
Read tag into $var. Advance buffer with consumed bytes.
No description
No description
No description
No description
No description
No description
Details
__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