lib/cdb++/cdb++.h
changeset 2 b3afb9f1e801
parent 0 6f7a81934006
--- a/lib/cdb++/cdb++.h	Sun Jan 20 00:12:17 2008 +0100
+++ b/lib/cdb++/cdb++.h	Sun Jan 20 00:22:09 2008 +0100
@@ -1,4 +1,5 @@
-// Copyright (C) 1999,2000 Bruce Guenter <bruceg@em.ca>
+/* $Id: cdb++.h 633 2005-09-04 04:20:59Z bruce $ */
+// Copyright (C) 1999,2000,2005 Bruce Guenter <bruceg@em.ca>
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -21,23 +22,22 @@
 #include "cdb++/datum.h"
 #include "fdbuf/fdbuf.h"
 
-typedef unsigned long uint32;
+typedef unsigned uint32;
 
 #define CDBMAKE_HPLIST 1000
 
 class cdb_reader
 {
 private:
-  fdibuf in;
-  uint32 eod;
-  uint32 pos;
+  unsigned char* map;
+  size_t size;
+  unsigned char* ptr;
+  unsigned char* eod;
   bool failed;
   bool eof;
 
-  unsigned char header[2048];
-  
   void abort();
-  int seek(const mystring& key, uint32& len);
+  char* seek(const mystring& key, uint32& len);
 public:
   cdb_reader(const mystring& filename);
   ~cdb_reader();