Cthulhu  0.2.10
Cthulhu compiler collection
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ctu::Io Class Reference

#include <io.hpp>

Public Member Functions

OsError error () const
 
size_t size () const
 
const void * map () const
 
std::string_view text () const
 
const char * name () const
 
io_tget () const
 

Static Public Member Functions

static Io file (const char *path)
 

Detailed Description

Definition at line 29 of file io.hpp.

Member Function Documentation

◆ error()

OsError Io::error ( ) const

Definition at line 44 of file io.cpp.

◆ file()

Io Io::file ( const char *  path)
static

Definition at line 39 of file io.cpp.

◆ get()

io_t* ctu::Io::get ( ) const
inline

Definition at line 47 of file io.hpp.

◆ map()

const void * Io::map ( ) const

Definition at line 54 of file io.cpp.

◆ name()

const char * Io::name ( ) const

Definition at line 65 of file io.cpp.

◆ size()

size_t Io::size ( ) const

Definition at line 49 of file io.cpp.

◆ text()

std::string_view Io::text ( ) const

Definition at line 59 of file io.cpp.


The documentation for this class was generated from the following files: