From feb309b5b151378b7be899b66a54db9bcf2ea404 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 30 Nov 2016 00:39:04 -0800 Subject: The fastest way to get field values is as a range. --- apt-pkg/pkgrecords.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apt-pkg/pkgrecords.h') diff --git a/apt-pkg/pkgrecords.h b/apt-pkg/pkgrecords.h index dec722330..f78a6229f 100644 --- a/apt-pkg/pkgrecords.h +++ b/apt-pkg/pkgrecords.h @@ -100,6 +100,9 @@ class pkgRecords::Parser /*{{{*/ // The record in binary form virtual void GetRec(const char *&Start,const char *&Stop) {Start = Stop = 0;}; + // Locate a tag + virtual bool Find(const char *Tag,const char *&Start, const char *&End) {Start = End = 0; return false;}; + Parser(); virtual ~Parser(); -- cgit v1.2.3