function CodedInputStream::readRaw
2 calls to CodedInputStream::readRaw()
- CodedInputStream::readLittleEndian32 in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ CodedInputStream.php - Read 32-bit unsigned integer to $var. If the buffer has less than 4 bytes, return false. Advance buffer with consumed bytes.
- CodedInputStream::readLittleEndian64 in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ CodedInputStream.php - Read 64-bit unsigned integer to $var. If the buffer has less than 8 bytes, return false. Advance buffer with consumed bytes.
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ CodedInputStream.php, line 271
Class
Namespace
Google\Protobuf\InternalCode
public function readRaw($size, &$buffer) {
$current_buffer_size = 0;
if ($this->bufferSize() < $size) {
return false;
}
if ($size === 0) {
$buffer = "";
}
else {
$buffer = substr($this->buffer, $this->current, $size);
$this->advance($size);
}
return true;
}