debrecords.cc 1023 B

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