eio_seek
(PECL eio >= 0.5.0b)
Seek to a position
Description
eio_seek() repositions the offset of the open file associated with stream, Socket instance, or file descriptor specified by fd to the argument offset according to the directive whence.
Parameters
fdStream,
Socketinstance, or numeric file descriptor.offsetStarting point from which data is to be read.
whencewhencevalues are:EIO_SEEK_SET- Set position equal tooffsetbytes.EIO_SEEK_CUR- Set position to current location plusoffset.EIO_SEEK_END- Set position to end-of-file plusoffset.
priValues
callbackProto
dataArbitrary variable passed to
callback.
Return Values
eio_seek() returns request resource on success,Falseforfailure.