You are here

public function BufferStream::eof in Lockr 7.3

Returns true if the stream is at the end of the stream.

Return value

bool

Overrides StreamInterface::eof

File

vendor/guzzlehttp/psr7/src/BufferStream.php, line 84

Class

BufferStream
Provides a buffer stream that can be written to to fill a buffer, and read from to remove bytes from the buffer.

Namespace

GuzzleHttp\Psr7

Code

public function eof() {
  return strlen($this->buffer) === 0;
}