fehQlibs 27
Qlibs
Loading...
Searching...
No Matches
cdbread.h File Reference
#include "uint_t.h"
Include dependency graph for cdbread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cdb
 

Macros

#define CDB_HASHSTART   5381ULL
 
#define cdb_datapos(c)
 
#define cdb_datalen(c)
 

Functions

uint32 cdb_hashadd (uint32, unsigned char)
 
uint32 cdb_hash (char *, unsigned int)
 
uint32 cdb_unpack (unsigned char *)
 
void cdb_free (struct cdb *)
 
void cdb_init (struct cdb *, int fd)
 
int cdb_read (struct cdb *, char *, unsigned int, uint32)
 
void cdb_findstart (struct cdb *)
 
int cdb_findnext (struct cdb *, char *, unsigned int)
 
int cdb_find (struct cdb *, char *, unsigned int)
 

Macro Definition Documentation

◆ cdb_datalen

#define cdb_datalen ( c)
Value:
((c)->dlen)

Definition at line 36 of file cdbread.h.

◆ cdb_datapos

#define cdb_datapos ( c)
Value:
((c)->dpos)

Definition at line 35 of file cdbread.h.

◆ CDB_HASHSTART

#define CDB_HASHSTART   5381ULL

Definition at line 8 of file cdbread.h.

Function Documentation

◆ cdb_find()

int cdb_find ( struct cdb * c,
char * key,
unsigned int len )
extern

Definition at line 147 of file cdbread.c.

Here is the call graph for this function:

◆ cdb_findnext()

int cdb_findnext ( struct cdb * c,
char * key,
unsigned int len )
extern

Definition at line 102 of file cdbread.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cdb_findstart()

void cdb_findstart ( struct cdb * c)
extern

Definition at line 35 of file cdbread.c.

Here is the caller graph for this function:

◆ cdb_free()

void cdb_free ( struct cdb * c)
extern

Definition at line 27 of file cdbread.c.

Here is the caller graph for this function:

◆ cdb_hash()

uint32 cdb_hash ( char * buf,
unsigned int len )
extern

Definition at line 159 of file cdbread.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cdb_hashadd()

uint32 cdb_hashadd ( uint32 h,
unsigned char c )
extern

Definition at line 153 of file cdbread.c.

Here is the caller graph for this function:

◆ cdb_init()

void cdb_init ( struct cdb * c,
int fd )
extern

Definition at line 40 of file cdbread.c.

Here is the call graph for this function:

◆ cdb_read()

int cdb_read ( struct cdb * c,
char * buf,
unsigned int len,
uint32 pos )
extern

Definition at line 59 of file cdbread.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cdb_unpack()

uint32 cdb_unpack ( unsigned char * buf)
extern

Definition at line 17 of file cdbread.c.