summaryrefslogtreecommitdiff
path: root/apt-pkg/tagfile.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-10-02 00:58:53 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-10-02 00:58:53 +0200
commit75c541fdeda664bdf0e48e68a2aa5dae7015587c (patch)
tree17c3f78fd38e4de1b5877bda0512e54b80098c08 /apt-pkg/tagfile.h
parentc407612f82f02ed97ec879e48e3cd1c187b4f5ea (diff)
* apt-pkg/tagfile.cc,h:
- make the internal buffer grow dynamically if required
Diffstat (limited to 'apt-pkg/tagfile.h')
-rw-r--r--apt-pkg/tagfile.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/apt-pkg/tagfile.h b/apt-pkg/tagfile.h
index 35ffebda8..70381ad13 100644
--- a/apt-pkg/tagfile.h
+++ b/apt-pkg/tagfile.h
@@ -75,16 +75,17 @@ class pkgTagFile
bool Done;
unsigned long iOffset;
unsigned long Size;
-
+
bool Fill();
-
+ bool Resize();
+
public:
bool Step(pkgTagSection &Section);
inline unsigned long Offset() {return iOffset;};
bool Jump(pkgTagSection &Tag,unsigned long Offset);
- pkgTagFile(FileFd *F,unsigned long Size = 128*1024);
+ pkgTagFile(FileFd *F,unsigned long Size = 32*1024);
~pkgTagFile();
};