aboutsummaryrefslogtreecommitdiffstats
path: root/lib/siscomponentrecord.h
diff options
context:
space:
mode:
authorDaniel Brahneborg <basic@chello.se>2002-03-06 20:03:48 +0000
committerDaniel Brahneborg <basic@chello.se>2002-03-06 20:03:48 +0000
commitc989ceb038fcfe5d583928dfd1f8b0cf6a301cbe (patch)
treea938f3d1e5123e1505a4fd3840c3182f8d6395ee /lib/siscomponentrecord.h
parentaa59faec168326365c6bdc6743dffec336862a6a (diff)
downloadplptools-c989ceb038fcfe5d583928dfd1f8b0cf6a301cbe.tar.gz
plptools-c989ceb038fcfe5d583928dfd1f8b0cf6a301cbe.tar.bz2
plptools-c989ceb038fcfe5d583928dfd1f8b0cf6a301cbe.zip
Document most of the method arguments with @param.
Diffstat (limited to 'lib/siscomponentrecord.h')
-rw-r--r--lib/siscomponentrecord.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/siscomponentrecord.h b/lib/siscomponentrecord.h
index d15e754..5fbf945 100644
--- a/lib/siscomponentrecord.h
+++ b/lib/siscomponentrecord.h
@@ -30,6 +30,11 @@ class SISFile;
/**
* 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.
*/
class SISComponentNameRecord
{
@@ -39,13 +44,19 @@ public:
/**
* Populate the fields.
+ *
+ * @param buf The buffer to read data from.
+ * @param base The index where we start reading data.
+ * @param len The length of the buffer, for range checking.
+ * @param sisFile The container sis file.
*/
SisRC fillFrom(uint8_t* buf, int base, off_t len, SISFile* sisFile);
/**
* Return the name for the given language.
- * The number is the sequence number in the list of language records
- * in the sis file.
+ *
+ * @param no The sequence number in the list of language records in
+ * the sis file.
*/
uint8_t* getName(int no);
@@ -55,7 +66,7 @@ private:
uint32_t* m_namePtrs;
/**
- * The extracted names.
+ * The extracted names, as zero terminated strings.
*/
uint8_t** m_names;