You are here

public function ResourceStreamWrapper::stream_read in D7 Media 6

Support for fread(), file_get_contents() etc.

Parameters

$count: Maximum number of bytes to be read.

Return value

The string that was read, or FALSE in case of an error.

Overrides StreamWrapperInterface::stream_read

File

resource/ResourceStreamWrapper.inc, line 129

Class

ResourceStreamWrapper
A base class for Resource Stream Wrappers.

Code

public function stream_read($count) {
  resource_debug("stream_read: {$this->handle}");
  return fread($this->handle, $count);
}