public function getBinaryStream($transferEncoding)
    {
        if ($this->stream === null) {
            return null;
        }
        if ($this->decodedStream === null
            || $this->isTransferEncodingFilterChanged($transferEncoding)) {
            $this->reset();
            $this->attachTransferEncodingFilter($transferEncoding);
        }
        $this->decodedStream->rewind();
        return $this->decodedStream;
    }
public function getBinaryStream($transferEncoding)
    {
        if ($this->stream === null) {
            return null;
        }
        if ($this->decodedStream === null
            || $this->isTransferEncodingFilterChanged($transferEncoding)) {
            $this->reset();
            $this->attachTransferEncodingFilter($transferEncoding);
        }
        $this->decodedStream->rewind();
        return $this->decodedStream;
    }
public function getBinaryStream ( $ transferEncoding ) { if ( $ this -> stream === null ) { return null ; } if ( $ this -> decodedStream === null || $ this -> isTransferEncodingFilterChanged ( $ transferEncoding ) ) { $ this -> reset ( ) ; $ this -> attachTransferEncodingFilter ( $ transferEncoding ) ; } $ this -> decodedStream -> rewind ( ) ; return $ this -> decodedStream ; }
Checks what transfer-encoding decoder stream is attached on the
underlying stream, and resets it if the requested arguments differ.

@param string $transferEncoding
@return StreamInterface
Checks what transfer - encoding decoder stream is attached on the underlying stream and resets it if the requested arguments differ .