function CodedOutputStream::writeRaw
4 calls to CodedOutputStream::writeRaw()
- CodedOutputStream::writeLittleEndian32 in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ CodedOutputStream.php - CodedOutputStream::writeLittleEndian64 in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ CodedOutputStream.php - CodedOutputStream::writeVarint32 in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ CodedOutputStream.php - CodedOutputStream::writeVarint64 in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ CodedOutputStream.php
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ CodedOutputStream.php, line 66
Class
Namespace
Google\Protobuf\InternalCode
public function writeRaw($data, $size) {
if ($this->buffer_size < $size) {
trigger_error("Output stream doesn't have enough buffer.");
return false;
}
for ($i = 0; $i < $size; $i++) {
$this->buffer[$this->current] = $data[$i];
$this->current++;
$this->buffer_size--;
}
return true;
}