Icicle\Http\Stream\ZlibDecoder::send PHP Method

send() protected method

protected send ( string $data, float $timeout, boolean $end = false ) : Generator
$data string
$timeout float
$end boolean
return Generator
    protected function send(string $data, float $timeout = 0, bool $end = false) : \Generator
    {
        if (false === ($data = inflate_add($this->resource, $data, $end ? \ZLIB_FINISH : \ZLIB_SYNC_FLUSH))) {
            throw new FailureException('Failed adding date to inflate stream.');
        }
        return yield from parent::send($data, $timeout, $end);
    }