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 |
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 |
Inherited from IOPolicy
Section titled “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 |
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
SyncPOSIXIO |
||
IOStatus |
connect |
|
IOStatus |
connect |
|
IOStatus |
read |
SyncPOSIXIO
Section titled “SyncPOSIXIO”SyncPOSIXIO()Defined in src/lib/sbio/io/posix.hh:47
connect
Section titled “connect”IOStatus connect(const char * path)Defined in src/lib/sbio/io/posix.hh:51
connect
Section titled “connect”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
Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
int |
m_fd |
int m_fdDefined in src/lib/sbio/io/posix.hh:65