diff options
Diffstat (limited to 'example/use_cases.cpp')
-rw-r--r-- | example/use_cases.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/use_cases.cpp b/example/use_cases.cpp index 2b495436..9c039c5f 100644 --- a/example/use_cases.cpp +++ b/example/use_cases.cpp @@ -98,8 +98,8 @@ void read_entire_file2() { afio::async_file_handle::buffer_type scatter_req{ buffers[n].first.data(), buffers[n].first.size() }; // buffer to fill auto ret = afio::async_read( // - fh, // handle to read from - { { scatter_req } , 0 }, // The scatter request buffers + fh, // handle to read from + { { scatter_req }, valid_extents[n].first }, // The scatter request buffers + offset []( // The completion handler afio::async_file_handle *, // The parent handle afio::async_file_handle::io_result<afio::async_file_handle::buffers_type> & // Result of the i/o |