SyncPOSIXIO
SyncPOSIXIO
Section titled “SyncPOSIXIO”#include <sbio/io/posix.hh>struct SyncPOSIXIODefined in src/lib/sbio/io/posix.hh:44
Inherits:
IOPolicy< SyncPOSIXIO >
A very basic IO implementation over standard synchronous POSIX APIs.
This IO implementation provides solely synchronous IO capabilities over a Stream using standard POSIX APIs.
The term POSIX is a misnomer if on Windows as the POSIX pread, etc, APIs are clearly not available. In this case, however, the equivalent behaviour is provided using the Windows APIs.
List of all members
Section titled “List of all members”| Name | Kind | Owner |
|---|---|---|
SyncPOSIXIO |
function |
Declared here |
~SyncPOSIXIO |
function |
Declared here |
SyncPOSIXIO |
function |
Declared here |
operator= |
function |
Declared here |
SyncPOSIXIO |
function |
Declared here |
operator= |
function |
Declared here |
connect |
function |
Declared here |
connect |
function |
Declared here |
read_impl |
function |
Declared here |
Capabilities |
variable |
Declared here |
m_fd |
variable |
Declared here |
IOPolicy |
function |
Inherited from IOPolicy |
connect |
function |
Inherited from IOPolicy |
read |
function |
Inherited from IOPolicy |
file_size |
function |
Inherited from IOPolicy |
m_file_size |
variable |
Inherited from IOPolicy |
Inherited from IOPolicy
Section titled “Inherited from IOPolicy”| Kind | Name | Description |
|---|---|---|
function |
IOPolicy inline |
|
function |
connect inline |
|
function |
read const inline |
|
function |
file_size const inline |
|
variable |
m_file_size |
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
SyncPOSIXIO |
||
~SyncPOSIXIO |
||
SyncPOSIXIO |
Deleted constructor. | |
SyncPOSIXIO & |
operator= |
Deleted assignment operator. |
SyncPOSIXIO noexcept |
||
SyncPOSIXIO & |
operator= noexcept |
|
IOStatus |
connect |
|
IOStatus |
connect |
|
ReadResult |
read_impl const |
SyncPOSIXIO
Section titled “SyncPOSIXIO”SyncPOSIXIO()Defined in src/lib/sbio/io/posix.hh:55
~SyncPOSIXIO
Section titled “~SyncPOSIXIO”~SyncPOSIXIO()Defined in src/lib/sbio/io/posix.hh:57
SyncPOSIXIO
Section titled “SyncPOSIXIO”SyncPOSIXIO(const SyncPOSIXIO & other) = deleteDefined in src/lib/sbio/io/posix.hh:59
Deleted constructor.
operator=
Section titled “operator=”SyncPOSIXIO & operator=(const SyncPOSIXIO & other) = deleteDefined in src/lib/sbio/io/posix.hh:60
Deleted assignment operator.
SyncPOSIXIO
Section titled “SyncPOSIXIO”noexcept
SyncPOSIXIO(SyncPOSIXIO && other) noexceptDefined in src/lib/sbio/io/posix.hh:62
operator=
Section titled “operator=”noexcept
SyncPOSIXIO & operator=(SyncPOSIXIO && other) noexceptDefined in src/lib/sbio/io/posix.hh:63
connect
Section titled “connect”IOStatus connect(const char * path)Defined in src/lib/sbio/io/posix.hh:65
connect
Section titled “connect”IOStatus connect(int fd)Defined in src/lib/sbio/io/posix.hh:70
read_impl
Section titled “read_impl”const
ReadResult read_impl(std::uint64_t offset, std::size_t size, void * dest) constDefined in src/lib/sbio/io/posix.hh:73
Public Static Attributes
Section titled “Public Static Attributes”| Return | Name | Description |
|---|---|---|
constexpr IOCapability |
Capabilities static constexpr |
Read into host memory (pageable or pinned) from any thread. |
Capabilities
Section titled “Capabilities”static constexpr
constexpr IOCapability Capabilities { IOCapability::ReadToHost | IOCapability::ReadToPinned | IOCapability::ConcurrentReads }Type: constexpr IOCapability
Defined in src/lib/sbio/io/posix.hh:51
Read into host memory (pageable or pinned) from any thread.
Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
int |
m_fd |
int m_fdDefined in src/lib/sbio/io/posix.hh:79