public function S3fsStreamWrapper::stream_read in S3 File System 7
Same name and namespace in other branches
- 7.2 S3fsStreamWrapper.inc \S3fsStreamWrapper::stream_read()
Support for fread(), file_get_contents() etc.
Parameters
int $count: Maximum number of bytes to be read.
Return value
string The string that was read, or FALSE in case of an error.
Overrides StreamWrapperInterface::stream_read
See also
http://php.net/manual/en/streamwrapper.stream-read.php
File
- ./
S3fsStreamWrapper.inc, line 612 - Drupal stream wrapper implementation for S3 File System.
Class
- S3fsStreamWrapper
- The stream wrapper class.
Code
public function stream_read($count) {
$this
->_debug("stream_read({$count}) called for {$this->uri}.");
return $this->body
->read($count);
}