(PECL eio >= 0.5.0b)
eio_seek — Repositions the offset of the open file associated with the fd
argument to the argument offset
according to the directive whence
$fd
, int $offset
, int $whence
[, int $pri
= EIO_PRI_DEFAULT
[, callable $callback
= NULL
[, mixed $data
= NULL
]]] ) : resource
eio_seek() repositions the offset of the open file associated with
stream, Socket resource, or file descriptor specified by fd
to the argument offset
according to the directive whence
as follows:
EIO_SEEK_SET
- Set position equal to offset
bytes.EIO_SEEK_CUR
- Set position to current location plus offset
.EIO_SEEK_END
- Set position to end-of-file plus offset
.fd
Stream, Socket resource, or numeric file descriptor
offset
Starting point from which data is to be read.
length
Number of bytes to be read.
pri
锟斤拷锟斤拷锟斤拷锟斤拷燃锟斤拷锟�EIO_PRI_DEFAULT
锟斤拷EIO_PRI_MIN
锟斤拷EIO_PRI_MAX
锟斤拷 NULL
锟斤拷锟斤拷锟斤拷锟�
NULL
锟斤拷pri
锟斤拷锟斤拷为
EIO_PRI_DEFAULT
锟斤拷
callback
callback
锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟绞憋拷锟斤拷锟斤拷谩锟斤拷锟接ζワ拷锟揭伙拷锟皆拷停锟�
void callback(mixed $data, int $result[, resource $req]);
data
锟斤拷锟捷革拷锟斤拷锟斤拷锟斤拷没锟斤拷锟斤拷荨锟�
result
锟斤拷锟斤拷锟斤拷锟侥斤拷锟斤拷锟街碉拷锟酵拷锟斤拷锟斤拷锟接︼拷锟较低筹拷锟斤拷梅锟斤拷氐锟街碉拷锟�
req
锟斤拷选锟斤拷锟斤拷锟斤拷锟斤拷源锟斤拷锟缴憋拷 eio_get_last_error() 之锟斤拷暮锟斤拷锟绞癸拷谩锟�
data
Arbitrary variable passed to callback
.
eio_seek() returns request resource on success or FALSE
on error.