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
connect function Declared here
connect function Declared here
read function Declared here
m_fd variable Declared here
IOPolicy function Inherited from IOPolicy
connect function Inherited from IOPolicy
read function Inherited from IOPolicy
iread function Inherited from IOPolicy
wait function Inherited from IOPolicy
file_size function Inherited from IOPolicy
read_count function Inherited from IOPolicy
total_bytes_read function Inherited from IOPolicy
m_file_size variable Inherited from IOPolicy
m_read_count variable Inherited from IOPolicy
m_total_bytes_read variable Inherited from IOPolicy
m_cached_offset variable Inherited from IOPolicy
m_cached_size variable Inherited from IOPolicy
m_cached_dest variable Inherited from IOPolicy
Kind Name Description
function IOPolicy inline
function connect inline
function read inline
function iread inline
function wait inline
function file_size const inline
function read_count const inline
function total_bytes_read const inline
variable m_file_size
variable m_read_count Bytes read on the last read.
variable m_total_bytes_read Cummulative bytes read over all reads.
variable m_cached_offset
variable m_cached_size
variable m_cached_dest
Return Name Description
SyncPOSIXIO
IOStatus connect
IOStatus connect
IOStatus read

SyncPOSIXIO()

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


IOStatus connect(const char * path)

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


IOStatus connect(int fd)

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


IOStatus read(std::uint64_t offset, std::size_t size, void * dest)

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

Return Name Description
int m_fd

int m_fd

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