… | |
… | |
329 | Reads or writes C<$length> bytes from the specified C<$fh> and C<$offset> |
329 | Reads or writes C<$length> bytes from the specified C<$fh> and C<$offset> |
330 | into the scalar given by C<$data> and offset C<$dataoffset> and calls the |
330 | into the scalar given by C<$data> and offset C<$dataoffset> and calls the |
331 | callback without the actual number of bytes read (or -1 on error, just |
331 | callback without the actual number of bytes read (or -1 on error, just |
332 | like the syscall). |
332 | like the syscall). |
333 | |
333 | |
334 | If C<$offset> is undefined, then the current file offset will be used (and |
334 | If C<$offset> is undefined, then the current file descriptor offset will |
335 | updated), otherwise the file offset will not be changed by these calls. |
335 | be used (and updated), otherwise the file descriptor offset will not be |
|
|
336 | changed by these calls. |
336 | |
337 | |
337 | If C<$length> is undefined in C<aio_write>, use the remaining length of C<$data>. |
338 | If C<$length> is undefined in C<aio_write>, use the remaining length of C<$data>. |
338 | |
339 | |
339 | If C<$dataoffset> is less than zero, it will be counted from the end of |
340 | If C<$dataoffset> is less than zero, it will be counted from the end of |
340 | C<$data>. |
341 | C<$data>. |