|
plptools
|
Information about a file component in a SIS file. More...
#include <sisfilerecord.h>
Public Member Functions | |
| SisRC | fillFrom (uint8_t *buf, int *base, off_t len, SISFile *sisFile) |
| Populate the fields. More... | |
| uint8_t * | getDestPtr () |
| uint8_t * | getFilePtr (int fileNo) |
| Return a pointer to the file data for the file for the specified language. More... | |
| void | setMainDrive (char drive) |
Public Attributes | |
| uint32_t | m_flags |
| 1 if multiple language versions, otherwise 0. More... | |
| uint32_t | m_fileType |
| Type of file. More... | |
| uint32_t | m_fileDetails |
| If file type is 1: More... | |
| uint32_t | m_sourceLength |
| uint32_t | m_sourcePtr |
| uint32_t | m_destLength |
| uint32_t * | m_fileLengths |
Private Attributes | |
| uint32_t | m_destPtr |
| uint32_t * | m_filePtrs |
| uint8_t * | m_buf |
| The buffer we belong to. More... | |
| int | m_len |
Information about a file component in a SIS file.
The file can be for multiple languages, in which case a single instance holds pointers to contents for all languages.
Definition at line 33 of file sisfilerecord.h.
Populate the fields.
| buf | The buffer to read from. |
| base | The index to start reading from, which is updated when the record is successfully read. |
| len | The length of the buffer. |
| sisFile | The container SISFile. |
Definition at line 28 of file sisfilerecord.cpp.
|
inline |
Definition at line 48 of file sisfilerecord.h.
| uint8_t * SISFileRecord::getFilePtr | ( | int | fileNo | ) |
Return a pointer to the file data for the file for the specified language.
Definition at line 129 of file sisfilerecord.cpp.
| void SISFileRecord::setMainDrive | ( | char | drive | ) |
Definition at line 139 of file sisfilerecord.cpp.
|
private |
The buffer we belong to.
Used for updating the destination file name.
Definition at line 107 of file sisfilerecord.h.
| uint32_t SISFileRecord::m_destLength |
Definition at line 95 of file sisfilerecord.h.
|
private |
Definition at line 100 of file sisfilerecord.h.
| uint32_t SISFileRecord::m_fileDetails |
If file type is 1:
If file type is 3:
Definition at line 91 of file sisfilerecord.h.
| uint32_t* SISFileRecord::m_fileLengths |
Definition at line 96 of file sisfilerecord.h.
|
private |
Definition at line 101 of file sisfilerecord.h.
| uint32_t SISFileRecord::m_fileType |
Type of file.
Definition at line 76 of file sisfilerecord.h.
| uint32_t SISFileRecord::m_flags |
1 if multiple language versions, otherwise 0.
Definition at line 64 of file sisfilerecord.h.
|
private |
Definition at line 109 of file sisfilerecord.h.
| uint32_t SISFileRecord::m_sourceLength |
Definition at line 93 of file sisfilerecord.h.
| uint32_t SISFileRecord::m_sourcePtr |
Definition at line 94 of file sisfilerecord.h.