aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sisfile.h
diff options
context:
space:
mode:
authorDaniel Brahneborg <basic@chello.se>2002-04-14 12:03:02 +0000
committerDaniel Brahneborg <basic@chello.se>2002-04-14 12:03:02 +0000
commitf1f20db42313032578ba256903d0004dd126a60a (patch)
tree228e3636eaa61d89f35bea8fd782b095758e88ca /lib/sisfile.h
parent06e892c7ae2f4d542b6e6aa4549c9585857087b6 (diff)
downloadplptools-f1f20db42313032578ba256903d0004dd126a60a.tar.gz
plptools-f1f20db42313032578ba256903d0004dd126a60a.tar.bz2
plptools-f1f20db42313032578ba256903d0004dd126a60a.zip
More correct residual sis file truncation
Diffstat (limited to 'lib/sisfile.h')
-rw-r--r--lib/sisfile.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/sisfile.h b/lib/sisfile.h
index d74cc1c..bb33570 100644
--- a/lib/sisfile.h
+++ b/lib/sisfile.h
@@ -74,6 +74,15 @@ public:
*/
uint8_t* getName();
+ /**
+ * Get the number of bytes that should be copied to the residual sis
+ * file on the psion.
+ */
+ uint32_t getResidualEnd()
+ {
+ return m_end;
+ }
+
void ownBuffer()
{
m_ownBuffer = true;
@@ -112,6 +121,10 @@ private:
uint8_t* m_buf;
+ uint32_t m_end;
+
+ void updateEnd(uint32_t pos);
+
};
#endif