MOS Source Code
Loading...
Searching...
No Matches
PipeIOImpl Struct Reference

#include <pipe.hpp>

+ Inheritance diagram for PipeIOImpl:
+ Collaboration diagram for PipeIOImpl:

Public Member Functions

 PipeIOImpl (IOFlags flags)
 
size_t on_read (void *buf, size_t size) override
 
size_t on_write (const void *buf, size_t size) override
 
void on_closed () override
 
- Public Member Functions inherited from IO
 IO (IOFlags flags, io_type_t type)
 
virtual ~IO ()=0
 
IOref ()
 
IOunref ()
 
virtual mos::string name () const
 
virtual off_t seek (off_t, io_seek_whence_t) final
 
virtual off_t tell () final
 
virtual size_t read (void *buf, size_t count) final
 
virtual size_t pread (void *buf, size_t count, off_t offset) final
 
virtual size_t write (const void *buf, size_t count) final
 
virtual bool VerifyMMapPermissions (VMFlags flags, bool is_private) final
 
bool map (vmap_t *vmap, off_t offset)
 
bool unmap (vmap_t *vmap, bool *unmapped)
 

Additional Inherited Members

- Static Public Member Functions inherited from IO
static bool IsValid (const IO *io)
 
- Public Attributes inherited from IO
const IOFlags io_flags = IO_NONE
 
const io_type_t io_type = IO_NULL
 

Detailed Description

Definition at line 34 of file pipe.hpp.

Constructor & Destructor Documentation

◆ PipeIOImpl()

PipeIOImpl ( IOFlags flags)
inlineexplicit

Definition at line 36 of file pipe.hpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ on_read()

size_t on_read ( void * buf,
size_t size )
overridevirtual

Reimplemented from IO.

Definition at line 177 of file pipe.cpp.

+ Here is the call graph for this function:

◆ on_write()

size_t on_write ( const void * buf,
size_t size )
overridevirtual

Reimplemented from IO.

Definition at line 184 of file pipe.cpp.

+ Here is the call graph for this function:

◆ on_closed()

void on_closed ( )
overridevirtual

Implements IO.

Definition at line 191 of file pipe.cpp.

+ Here is the call graph for this function:

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