Back to BufferStreamHandler class

Method seek_cur

protected bool
seek_cur
(mixed $offset)
Adds the offset to current position
Parameters
  • int $offset The offset in bytes
Returns
  • bool

Method seek_cur - Source code

/**
 * Adds the offset to current position
 *
 * @param   integer  $offset  The offset in bytes
 *
 * @return  boolean
 */
protected function seek_cur($offset)
{
    if ($offset < 0) {
        return false;
    }
    $this->position += $offset;
    return true;
}