diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-02-13 11:37:22 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-02-13 11:37:22 +0100 |
commit | 005428387832e79e314bb8f2605f7e6c69708d14 (patch) | |
tree | 9050f687a150b6f6071398e12004f8c19ff4bc8e /apt-pkg/contrib | |
parent | 26b37f959350860a0c1d5ef9651efa0bf3640cb5 (diff) |
update size of dynamic MMap as we write in from the outside
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r-- | apt-pkg/contrib/mmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/contrib/mmap.h b/apt-pkg/contrib/mmap.h index 5ca951204..e9baa9339 100644 --- a/apt-pkg/contrib/mmap.h +++ b/apt-pkg/contrib/mmap.h @@ -61,6 +61,7 @@ class MMap inline operator void *() {return Base;}; inline void *Data() {return Base;}; inline unsigned long Size() {return iSize;}; + inline void AddSize(unsigned long const size) {iSize += size;}; // File manipulators bool Sync(); |