]> git.saurik.com Git - apt.git/blob - apt-pkg/deb/debrecords.cc
ae0acce1870baf0357b27fc7c86ddefadb3a57ee
[apt.git] / apt-pkg / deb / debrecords.cc
1 // -*- mode: cpp; mode: fold -*-
2 // Description /*{{{*/
3 // $Id: debrecords.cc,v 1.1 1998/08/09 00:51:36 jgg Exp $
4 /* ######################################################################
5
6 Debian Package Records - Parser for debian package records
7
8 ##################################################################### */
9 /*}}}*/
10 // Include Files /*{{{*/
11 #ifdef __GNUG__
12 #pragma implementation "apt-pkg/debrecords.h"
13 #endif
14 #include <apt-pkg/debrecords.h>
15 #include <apt-pkg/error.h>
16 /*}}}*/
17
18 // RecordParser::debRecordParser - Constructor /*{{{*/
19 // ---------------------------------------------------------------------
20 /* */
21 debRecordParser::debRecordParser(FileFd &File) : Tags(File,4*1024)
22 {
23 }
24 /*}}}*/
25 // RecordParser::Jump - Jump to a specific record /*{{{*/
26 // ---------------------------------------------------------------------
27 /* */
28 bool debRecordParser::Jump(pkgCache::VerFileIterator &Ver)
29 {
30 return Tags.Jump(Section,Ver->Offset);
31 }
32 /*}}}*/