CloneableInstantiable
| Constants |
| public Google |
| public Google |
| public Google |
| 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.
|
| 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.
|
| 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.
|
| public readVarint64( $var) Read Uint64 into $var. Advance buffer with consumed bytes.
|
| 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.
|
| 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() |