… | |
… | |
446 | |
446 | |
447 | =item aio_write $fh,$offset,$length, $data,$dataoffset, $callback->($retval) |
447 | =item aio_write $fh,$offset,$length, $data,$dataoffset, $callback->($retval) |
448 | |
448 | |
449 | Reads or writes C<$length> bytes from or to the specified C<$fh> and |
449 | Reads or writes C<$length> bytes from or to the specified C<$fh> and |
450 | C<$offset> into the scalar given by C<$data> and offset C<$dataoffset> |
450 | C<$offset> into the scalar given by C<$data> and offset C<$dataoffset> |
451 | and calls the callback without the actual number of bytes read (or -1 on |
451 | and calls the callback with the actual number of bytes read (or -1 on |
452 | error, just like the syscall). |
452 | error, just like the syscall). |
453 | |
453 | |
454 | C<aio_read> will, like C<sysread>, shrink or grow the C<$data> scalar to |
454 | C<aio_read> will, like C<sysread>, shrink or grow the C<$data> scalar to |
455 | offset plus the actual number of bytes read. |
455 | offset plus the actual number of bytes read. |
456 | |
456 | |