stream_seek ( $offset, $whence )

Seeks to specific location in a stream. This method is called in response to fseek(). The read/write position of the stream should be updated according to the $offset and $whence parameters.

Access

public

Parameters

Parameter

Type

Required

Description

$offset

integer

Required

The number of bytes to offset from the start of the file.

$whence

integer

Required

Ignored. Always uses SEEK_SET.

Returns

Type

Description

boolean

Whether or not the seek was successful.

Source

Method defined in extensions/s3streamwrapper.class.php | Toggle source view (6 lines) | View on GitHub

public function stream_seek($offset, $whence)
{
    $this->seek_position = $offset;

    return true;
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback