ff7tk  1.2.0.13
Work with Final Fantasy 7 game data
Public Member Functions | Static Public Member Functions | Friends | List of all members
IsoArchiveIO Class Reference

#include <IsoArchive.h>

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

Public Member Functions

 IsoArchiveIO ()
 
 IsoArchiveIO (const QString &name)
 
virtual ~IsoArchiveIO () override
 
bool open (QIODevice::OpenMode mode) override
 
qint64 posIso () const
 
bool seekIso (qint64 off)
 
qint64 sizeIso () const
 
qint64 readIso (char *data, qint64 maxSize)
 
QByteArray readIso (qint64 maxSize)
 
qint64 writeIso (const char *data, qint64 maxSize)
 
qint64 writeIso (const QByteArray &byteArray)
 
QByteArray sector (quint32 num, quint16 maxSize=SECTOR_SIZE_DATA)
 
QByteArray sectorHeader (quint32 num)
 
QByteArray sectorFooter (quint32 num)
 
quint32 currentSector () const
 
quint32 sectorCount () const
 
bool seekToSector (quint32 num)
 
bool writeSector (const QByteArray &data, quint8 type, quint8 mode=2)
 

Static Public Member Functions

static QByteArray int2Header (quint32 id)
 
static QByteArray buildHeader (quint32 sector, quint8 type, quint8 mode=2)
 
static QByteArray buildFooter (quint32 sector)
 
static void headerInfos (const QByteArray &header, quint8 *type, quint8 *mode=nullptr)
 
static quint32 sectorCountData (quint32 dataSize)
 

Friends

class IsoArchive
 

Constructor & Destructor Documentation

◆ IsoArchiveIO() [1/2]

IsoArchiveIO::IsoArchiveIO ( )

◆ IsoArchiveIO() [2/2]

IsoArchiveIO::IsoArchiveIO ( const QString &  name)
explicit

◆ ~IsoArchiveIO()

IsoArchiveIO::~IsoArchiveIO ( )
overridevirtual

Member Function Documentation

◆ buildFooter()

static QByteArray IsoArchiveIO::buildFooter ( quint32  sector)
inlinestatic

◆ buildHeader()

static QByteArray IsoArchiveIO::buildHeader ( quint32  sector,
quint8  type,
quint8  mode = 2 
)
inlinestatic

◆ currentSector()

quint32 IsoArchiveIO::currentSector ( ) const

◆ headerInfos()

static void IsoArchiveIO::headerInfos ( const QByteArray &  header,
quint8 *  type,
quint8 *  mode = nullptr 
)
inlinestatic

◆ int2Header()

static QByteArray IsoArchiveIO::int2Header ( quint32  id)
inlinestatic

◆ open()

bool IsoArchiveIO::open ( QIODevice::OpenMode  mode)
override

◆ posIso()

qint64 IsoArchiveIO::posIso ( ) const

◆ readIso() [1/2]

qint64 IsoArchiveIO::readIso ( char *  data,
qint64  maxSize 
)

◆ readIso() [2/2]

QByteArray IsoArchiveIO::readIso ( qint64  maxSize)

◆ sector()

QByteArray IsoArchiveIO::sector ( quint32  num,
quint16  maxSize = SECTOR_SIZE_DATA 
)

◆ sectorCount()

quint32 IsoArchiveIO::sectorCount ( ) const

◆ sectorCountData()

quint32 IsoArchiveIO::sectorCountData ( quint32  dataSize)
static

◆ sectorFooter()

QByteArray IsoArchiveIO::sectorFooter ( quint32  num)

◆ sectorHeader()

QByteArray IsoArchiveIO::sectorHeader ( quint32  num)

◆ seekIso()

bool IsoArchiveIO::seekIso ( qint64  off)

◆ seekToSector()

bool IsoArchiveIO::seekToSector ( quint32  num)

◆ sizeIso()

qint64 IsoArchiveIO::sizeIso ( ) const

◆ writeIso() [1/2]

qint64 IsoArchiveIO::writeIso ( const char *  data,
qint64  maxSize 
)

◆ writeIso() [2/2]

qint64 IsoArchiveIO::writeIso ( const QByteArray &  byteArray)

◆ writeSector()

bool IsoArchiveIO::writeSector ( const QByteArray &  data,
quint8  type,
quint8  mode = 2 
)

Friends And Related Function Documentation

◆ IsoArchive

friend class IsoArchive
friend

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