Guitar
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
MemoryReader Class Reference

#include <MemoryReader.h>

Inheritance diagram for MemoryReader:
Inheritance graph
[legend]
Collaboration diagram for MemoryReader:
Collaboration graph
[legend]

Public Member Functions

 MemoryReader (char const *ptr=nullptr, qint64 len=0)
 
void setData (char const *ptr, qint64 len)
 
bool isSequential () const override
 
bool open (OpenMode mode) override
 
qint64 pos () const override
 
qint64 size () const override
 
bool seek (qint64 pos) override
 
bool atEnd () const override
 
bool reset () override
 
qint64 bytesToWrite () const override
 
bool canReadLine () const override
 
bool waitForReadyRead (int msecs) override
 
bool waitForBytesWritten (int msecs) override
 
- Public Member Functions inherited from AbstractSimpleReader
virtual ~AbstractSimpleReader ()=default
 
virtual int read (void *ptr, int64_t len)=0
 
virtual void seek (int64_t pos)=0
 

Protected Member Functions

qint64 readData (char *data, qint64 maxlen) override
 
qint64 writeData (char const *data, qint64 len) override
 

Private Attributes

char const * begin
 
char const * end
 

Constructor & Destructor Documentation

◆ MemoryReader()

MemoryReader::MemoryReader ( char const *  ptr = nullptr,
qint64  len = 0 
)
Here is the call graph for this function:

Member Function Documentation

◆ atEnd()

bool MemoryReader::atEnd ( ) const
override
Here is the call graph for this function:

◆ bytesToWrite()

qint64 MemoryReader::bytesToWrite ( ) const
override
Here is the call graph for this function:

◆ canReadLine()

bool MemoryReader::canReadLine ( ) const
override
Here is the call graph for this function:

◆ isSequential()

bool MemoryReader::isSequential ( ) const
override
Here is the call graph for this function:

◆ open()

bool MemoryReader::open ( OpenMode  mode)
override
Here is the call graph for this function:

◆ pos()

qint64 MemoryReader::pos ( ) const
overridevirtual

Implements AbstractSimpleReader.

Here is the call graph for this function:

◆ readData()

qint64 MemoryReader::readData ( char *  data,
qint64  maxlen 
)
overrideprotected
Here is the call graph for this function:

◆ reset()

bool MemoryReader::reset ( )
override
Here is the call graph for this function:

◆ seek()

bool MemoryReader::seek ( qint64  pos)
override
Here is the call graph for this function:

◆ setData()

void MemoryReader::setData ( char const *  ptr,
qint64  len 
)
Here is the call graph for this function:

◆ size()

qint64 MemoryReader::size ( ) const
override
Here is the call graph for this function:

◆ waitForBytesWritten()

bool MemoryReader::waitForBytesWritten ( int  msecs)
override
Here is the call graph for this function:

◆ waitForReadyRead()

bool MemoryReader::waitForReadyRead ( int  msecs)
override
Here is the call graph for this function:

◆ writeData()

qint64 MemoryReader::writeData ( char const *  data,
qint64  len 
)
overrideprotected
Here is the call graph for this function:

Member Data Documentation

◆ begin

char const* MemoryReader::begin
private

◆ end

char const* MemoryReader::end
private

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