You are here

public function S3fsStream::stream_read in S3 File System 8.2

Support for fread(), file_get_contents() etc.

Parameters

int $count: Maximum number of bytes to be read.

Return value

string The data which was read from the stream, or FALSE in case of an error.

Overrides PhpStreamWrapperInterface::stream_read

See also

http://php.net/manual/en/streamwrapper.stream-read.php

File

src/StreamWrapper/S3fsStream.php, line 603

Class

S3fsStream
Defines a Drupal s3fs (s3fs://) stream wrapper class.

Namespace

Drupal\s3fs\StreamWrapper

Code

public function stream_read($count) {
  $this
    ->_debug("stream_read({$count}) called for {$this->uri}.");
  return $this->body
    ->read($count);
}