You are here

public function ResourceStreamWrapper::stream_seek in D7 Media 6

Support for fseek().

Parameters

$offset: The byte offset to got to.

$whence: SEEK_SET, SEEK_CUR, or SEEK_END.

Return value

TRUE on success

Overrides StreamWrapperInterface::stream_seek

File

resource/ResourceStreamWrapper.inc, line 167

Class

ResourceStreamWrapper
A base class for Resource Stream Wrappers.

Code

public function stream_seek($offset, $whence) {
  return fseek($this->handle, $offset, $whence);
}