|
plptools
|
The name of the component in this SIS file. More...
#include <siscomponentrecord.h>
Public Member Functions | |
| SISComponentNameRecord () | |
| virtual | ~SISComponentNameRecord () |
| SisRC | fillFrom (uint8_t *buf, int *base, off_t len, SISFile *sisFile) |
| Populate the fields. More... | |
| uint32_t | getLastEnd () |
| Find out the end position for the last name in the file. More... | |
| uint8_t * | getName (int no) |
| Return the name for the given language. More... | |
Private Attributes | |
| uint32_t * | m_nameLengths |
| uint32_t * | m_namePtrs |
| uint8_t ** | m_names |
| The extracted names, as zero terminated strings. More... | |
| int | m_nameCount |
| The number of names, so we know how much to delete. More... | |
The name of the component in this SIS file.
A single instance holds the names for all languages.
There is one name record for each language. First comes the lengths of all the names, as 32 bit integers. Second comes pointers to the names, as an index in the complete SISFile.
Definition at line 36 of file siscomponentrecord.h.
| SISComponentNameRecord::SISComponentNameRecord | ( | ) |
Definition at line 28 of file siscomponentrecord.cpp.
|
virtual |
Definition at line 33 of file siscomponentrecord.cpp.
Populate the fields.
| buf | The buffer to read data from. |
| base | The index where we start reading data. |
| len | The length of the buffer, for range checking. |
| sisFile | The container sis file. |
Definition at line 44 of file siscomponentrecord.cpp.
| uint32_t SISComponentNameRecord::getLastEnd | ( | ) |
Find out the end position for the last name in the file.
Definition at line 103 of file siscomponentrecord.cpp.
| uint8_t * SISComponentNameRecord::getName | ( | int | no | ) |
Return the name for the given language.
| no | The sequence number in the list of language records in the sis file. |
Definition at line 116 of file siscomponentrecord.cpp.
|
private |
The number of names, so we know how much to delete.
Definition at line 79 of file siscomponentrecord.h.
|
private |
Definition at line 68 of file siscomponentrecord.h.
|
private |
Definition at line 69 of file siscomponentrecord.h.
|
private |
The extracted names, as zero terminated strings.
Definition at line 74 of file siscomponentrecord.h.