React\HttpClient\ChunkedStreamDecoder::handleData PHP Method

handleData() public method

public handleData ( $data )
    public function handleData($data)
    {
        $this->buffer .= $data;
        do {
            $bufferLength = strlen($this->buffer);
            $continue = $this->iterateBuffer();
            $iteratedBufferLength = strlen($this->buffer);
        } while ($continue && $bufferLength !== $iteratedBufferLength && $iteratedBufferLength > 0);
        if ($this->buffer === false) {
            $this->buffer = '';
        }
    }