AFIO  v2.00 late alpha
io_handle.hpp File Reference

Provides i/o handle. More...

#include "handle.hpp"

Classes

class  afio_v2_xxx::io_handle
 A handle to something capable of scatter-gather i/o. More...
 
struct  afio_v2_xxx::io_handle::buffer_type
 The scatter buffer type used by this handle. Guaranteed to be TrivialType and StandardLayoutType. More...
 
struct  afio_v2_xxx::io_handle::const_buffer_type
 The gather buffer type used by this handle. Guaranteed to be TrivialType and StandardLayoutType. More...
 
struct  afio_v2_xxx::io_handle::io_request< T >
 The i/o request type used by this handle. Guaranteed to be TrivialType apart from construction, and StandardLayoutType. More...
 
struct  afio_v2_xxx::io_handle::io_result< T >
 The i/o result type used by this handle. Guaranteed to be TrivialType apart from construction.. More...
 
class  afio_v2_xxx::io_handle::extent_guard
 RAII holder a locked extent of bytes in a file. More...
 

Namespaces

 afio_v2_xxx
 The AFIO namespace.
 

Functions

io_handle::io_result< io_handle::buffers_type > afio_v2_xxx::read (io_handle &self, io_handle::io_request< io_handle::buffers_type > reqs, deadline d=deadline()) noexcept
 Read data from the open handle. More...
 
io_handle::io_result< io_handle::const_buffers_type > afio_v2_xxx::write (io_handle &self, io_handle::io_request< io_handle::const_buffers_type > reqs, deadline d=deadline()) noexcept
 Write data to the open handle. More...
 
io_handle::io_result< io_handle::const_buffers_type > afio_v2_xxx::barrier (io_handle &self, io_handle::io_request< io_handle::const_buffers_type > reqs=io_handle::io_request< io_handle::const_buffers_type >(), bool wait_for_device=false, bool and_metadata=false, deadline d=deadline()) noexcept
 Issue a write reordering barrier such that writes preceding the barrier will reach storage before writes after this barrier. More...
 

Detailed Description

Provides i/o handle.