Amp\File\UvHandle classUvHandle implementsAmp\File\Handle

Summary

Properties

Methods

Properties

Methods

__construct —public function__construct(Amp\UvReactor$reactor,$fh,$path,$mode,$size)
No documentation.
Type Parameter Description Default Value
Amp\UvReactor $reactor No documentation. none
mixed $fh No documentation. none
mixed $path No documentation. none
mixed $mode No documentation. none
mixed $size No documentation. none
read —public functionread(int$readLen)

Read $readLen bytes from the open file handle starting at $offset

Type Parameter Description Default Value
int $readLen No documentation. none
write —public functionwrite(string$writeData)

Write $writeData to the open file handle starting at $offset

Type Parameter Description Default Value
string $writeData No documentation. none
seek —public functionseek(int$offset,int$whence =\SEEK_SET)

Set the handle's internal pointer position

$whence values:

SEEK_SET - Set position equal to offset bytes. SEEK_CUR - Set position to current location plus offset. SEEK_END - Set position to end-of-file plus offset.

Type Parameter Description Default Value
int $offset No documentation. none
int $whence No documentation. \SEEK_SET
tell —public functiontell()

Return the current internal offset position of the file handle

eof —public functioneof()

Test for "end-of-file" on the file handle

path —public functionpath()

Retrieve the path used when opening the file handle

mode —public functionmode()

Retrieve the mode used when opening the file handle

close —public functionclose()

Close the file handle

Applications are not required to manually close handles -- they will be unloaded automatically when the object is garbage collected.

__destruct —public function__destruct()
No documentation.