Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
io.h File Reference
#include "lib/config2.h"
#include "lib/alignment.h"
#include "lib/bits.h"
#include "lib/timer.h"
#include "lib/file/file.h"
#include "lib/sysdep/rtl.h"
#include "lib/sysdep/filesystem.h"
#include "lib/posix/posix_aio.h"
Include dependency graph for io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  io::FreeAligned
 
struct  io::Operation
 
struct  io::Parameters
 
struct  io::Parameters::OverlappedTag
 
struct  io::DefaultCompletedHook
 
struct  io::DefaultIssueHook
 
class  io::ControlBlockRingBuffer
 

Namespaces

namespace  ERR
 
namespace  io
 

Macros

#define IO_OVERLAPPED   io::Parameters(io::Parameters::OverlappedTag())
 
#define ENABLE_IO_STATS   0
 

Typedefs

using io::BufferPtr = std::unique_ptr< u8, FreeAligned >
 

Functions

static io::BufferPtr io::Allocate (size_t size, size_t alignment=maxSectorSize)
 
Status io::Issue (aiocb &cb, size_t queueDepth)
 
Status io::WaitUntilComplete (aiocb &cb, size_t queueDepth)
 
template<class CompletedHook , class IssueHook >
static Status io::Run (const Operation &op, const Parameters &p=Parameters(), const CompletedHook &completedHook=CompletedHook(), const IssueHook &issueHook=IssueHook())
 
template<class CompletedHook >
static Status io::Run (const Operation &op, const Parameters &p=Parameters(), const CompletedHook &completedHook=CompletedHook())
 
static Status io::Run (const Operation &op, const Parameters &p=Parameters())
 
template<class CompletedHook , class IssueHook >
static Status io::Store (const OsPath &pathname, const void *data, size_t size, const Parameters &p=Parameters(), const CompletedHook &completedHook=CompletedHook(), const IssueHook &issueHook=IssueHook())
 
template<class CompletedHook >
static Status io::Store (const OsPath &pathname, const void *data, size_t size, const Parameters &p=Parameters(), const CompletedHook &completedHook=CompletedHook())
 
static Status io::Store (const OsPath &pathname, const void *data, size_t size, const Parameters &p=Parameters())
 
template<class CompletedHook , class IssueHook >
static Status io::Load (const OsPath &pathname, void *buf, size_t size, const Parameters &p=Parameters(), const CompletedHook &completedHook=CompletedHook(), const IssueHook &issueHook=IssueHook())
 
template<class CompletedHook >
static Status io::Load (const OsPath &pathname, void *buf, size_t size, const Parameters &p=Parameters(), const CompletedHook &completedHook=CompletedHook())
 
static Status io::Load (const OsPath &pathname, void *buf, size_t size, const Parameters &p=Parameters())
 

Variables

const Status ERR::IO = -110301
 

Macro Definition Documentation

◆ ENABLE_IO_STATS

#define ENABLE_IO_STATS   0

◆ IO_OVERLAPPED

#define IO_OVERLAPPED   io::Parameters(io::Parameters::OverlappedTag())