Elaztek Developer Hub
Blamite Game Engine - Keystone  00390.07.02.23.1947.blamite
A library that enables the use of Qt in Blamite's editing tools.
QHexBuffer Class Referenceabstract

#include <qhexbuffer.h>

+ Inheritance diagram for QHexBuffer:
+ Collaboration diagram for QHexBuffer:

Public Member Functions

 QHexBuffer (QObject *parent=nullptr)
 
bool isEmpty () const
 
virtual uchar at (qint64 idx)
 
virtual void replace (qint64 offset, const QByteArray &data)
 
virtual void read (char *data, int size)
 
virtual void read (const QByteArray &ba)
 
virtual qint64 length () const =0
 
virtual void insert (qint64 offset, const QByteArray &data)=0
 
virtual void remove (qint64 offset, int length)=0
 
virtual QByteArray read (qint64 offset, int length)=0
 
virtual bool read (QIODevice *iodevice)=0
 
virtual void write (QIODevice *iodevice)=0
 
virtual qint64 indexOf (const QByteArray &ba, qint64 from)=0
 
virtual qint64 lastIndexOf (const QByteArray &ba, qint64 from)=0
 

Constructor & Destructor Documentation

◆ QHexBuffer()

QHexBuffer::QHexBuffer ( QObject *  parent = nullptr)
explicit

Member Function Documentation

◆ at()

uchar QHexBuffer::at ( qint64  idx)
virtual

Reimplemented in QFileBuffer, and QMemoryBuffer.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ indexOf()

virtual qint64 QHexBuffer::indexOf ( const QByteArray &  ba,
qint64  from 
)
pure virtual

Implemented in QFileBuffer, QMemoryBuffer, and QMemoryRefBuffer.

+ Here is the caller graph for this function:

◆ insert()

virtual void QHexBuffer::insert ( qint64  offset,
const QByteArray &  data 
)
pure virtual

Implemented in QFileBuffer, QMemoryBuffer, and QMemoryRefBuffer.

+ Here is the caller graph for this function:

◆ isEmpty()

bool QHexBuffer::isEmpty ( ) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lastIndexOf()

virtual qint64 QHexBuffer::lastIndexOf ( const QByteArray &  ba,
qint64  from 
)
pure virtual

Implemented in QFileBuffer, QMemoryBuffer, and QMemoryRefBuffer.

+ Here is the caller graph for this function:

◆ length()

virtual qint64 QHexBuffer::length ( ) const
pure virtual

Implemented in QFileBuffer, QMemoryBuffer, and QMemoryRefBuffer.

+ Here is the caller graph for this function:

◆ read() [1/4]

void QHexBuffer::read ( char *  data,
int  size 
)
virtual
+ Here is the caller graph for this function:

◆ read() [2/4]

void QHexBuffer::read ( const QByteArray &  ba)
virtual
+ Here is the call graph for this function:

◆ read() [3/4]

virtual QByteArray QHexBuffer::read ( qint64  offset,
int  length 
)
pure virtual

◆ read() [4/4]

virtual bool QHexBuffer::read ( QIODevice *  iodevice)
pure virtual

◆ remove()

virtual void QHexBuffer::remove ( qint64  offset,
int  length 
)
pure virtual

Implemented in QFileBuffer, QMemoryBuffer, and QMemoryRefBuffer.

+ Here is the caller graph for this function:

◆ replace()

void QHexBuffer::replace ( qint64  offset,
const QByteArray &  data 
)
virtual
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ write()

virtual void QHexBuffer::write ( QIODevice *  iodevice)
pure virtual

Implemented in QFileBuffer, QMemoryBuffer, and QMemoryRefBuffer.

+ Here is the caller graph for this function:

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