in src/Apache/Ignite/Internal/Binary/MessageBuffer.php [269:282]
private function writeStr(string &$buffer, int $startPos = 0, int $length = -1): void
{
if ($length < 0) {
$length = strlen($buffer);
}
$this->ensureCapacity($length);
for ($i = 0; $i < $length; $i++) {
$this->buffer[$this->position + $i] = $buffer[$startPos + $i];
}
if ($this->position + $length > $this->length) {
$this->length = $this->position + $length;
}
$this->position += $length;
}