Skip to content

SyncPOSIXIO

#include <sbio/io/posix.hh>
struct SyncPOSIXIO

Defined 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.

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
Kind Name Description
function IOPolicy inline
function connect inline
function read const inline
function file_size const inline
variable m_file_size
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()

Defined in src/lib/sbio/io/posix.hh:55


~SyncPOSIXIO()

Defined in src/lib/sbio/io/posix.hh:57


SyncPOSIXIO(const SyncPOSIXIO & other) = delete

Defined in src/lib/sbio/io/posix.hh:59

Deleted constructor.


SyncPOSIXIO & operator=(const SyncPOSIXIO & other) = delete

Defined in src/lib/sbio/io/posix.hh:60

Deleted assignment operator.


noexcept

SyncPOSIXIO(SyncPOSIXIO && other) noexcept

Defined in src/lib/sbio/io/posix.hh:62


noexcept

SyncPOSIXIO & operator=(SyncPOSIXIO && other) noexcept

Defined in src/lib/sbio/io/posix.hh:63


IOStatus connect(const char * path)

Defined in src/lib/sbio/io/posix.hh:65


IOStatus connect(int fd)

Defined in src/lib/sbio/io/posix.hh:70


const

ReadResult read_impl(std::uint64_t offset, std::size_t size, void * dest) const

Defined in src/lib/sbio/io/posix.hh:73

Return Name Description
constexpr IOCapability Capabilities static constexpr Read into host memory (pageable or pinned) from any thread.

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.

Return Name Description
int m_fd

int m_fd

Defined in src/lib/sbio/io/posix.hh:79