ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.pm
(Generate patch)

Comparing IO-AIO/AIO.pm (file contents):
Revision 1.8 by root, Sun Jul 10 22:20:25 2005 UTC vs.
Revision 1.9 by root, Sun Jul 10 22:20:55 2005 UTC

128 128
129Example: Read 15 bytes at offset 7 into scalar C<$buffer>, strating at 129Example: Read 15 bytes at offset 7 into scalar C<$buffer>, strating at
130offset C<0> within the scalar: 130offset C<0> within the scalar:
131 131
132 aio_read $fh, 7, 15, $buffer, 0, sub { 132 aio_read $fh, 7, 15, $buffer, 0, sub {
133 $_[0] >= 0 or die "read error: $!"; 133 $_[0] > 0 or die "read error: $!";
134 print "read <$buffer>\n"; 134 print "read $_[0] bytes: <$buffer>\n";
135 }; 135 };
136 136
137=item aio_readahead $fh,$offset,$length, $callback 137=item aio_readahead $fh,$offset,$length, $callback
138 138
139Asynchronously reads the specified byte range into the page cache, using 139Asynchronously reads the specified byte range into the page cache, using

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines