summaryrefslogtreecommitdiff
path: root/apt-pkg/tagfile.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:50:39 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:50:39 +0000
commitdcb79bae22bd3e4739db39e56d00b4d65ff42269 (patch)
tree4092cc0e128f0fa0f1a8d23218ba724fa216e279 /apt-pkg/tagfile.h
parent0149949bce07d3a15cb8a197df1240d56f7bcd26 (diff)
Final testing
Author: jgg Date: 1998-07-05 05:33:52 GMT Final testing
Diffstat (limited to 'apt-pkg/tagfile.h')
-rw-r--r--apt-pkg/tagfile.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/apt-pkg/tagfile.h b/apt-pkg/tagfile.h
index a7a82dd1c..661ac4f23 100644
--- a/apt-pkg/tagfile.h
+++ b/apt-pkg/tagfile.h
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: tagfile.h,v 1.1 1998/07/02 02:58:13 jgg Exp $
+// $Id: tagfile.h,v 1.2 1998/07/05 05:33:59 jgg Exp $
/* ######################################################################
Fast scanner for RFC-822 type header information
@@ -39,7 +39,7 @@ class pkgTagSection
bool Find(const char *Tag,const char *&Start, const char *&End);
bool Scan(const char *Start,unsigned long MaxLength);
- inline unsigned long Length() {return Stop - Section;};
+ inline unsigned long size() {return Stop - Section;};
pkgTagSection() : Section(0), Stop(0) {};
};
@@ -51,12 +51,14 @@ class pkgTagFile
char *Start;
char *End;
unsigned long Left;
+ unsigned long iOffset;
bool Fill();
public:
bool Step(pkgTagSection &Section);
+ inline unsigned long Offset() {return iOffset;};
pkgTagFile(File &F);
};