IDZEBRA  2.1.2
Data Structures | Macros | Typedefs | Functions
isamc.h File Reference
#include <idzebra/isam-codec.h>
#include <idzebra/bfile.h>

Go to the source code of this file.

Data Structures

struct  ISAMC_filecat_s
 
struct  ISAMC_M_s
 
struct  ISAMC_I_s
 

Macros

#define isamc_type(x)   ((x) & 7)
 
#define isamc_block(x)   ((x) >> 3)
 

Typedefs

typedef zint ISAM_P
 
typedef struct ISAMC_sISAMC
 
typedef struct ISAMC_PP_sISAMC_PP
 
typedef struct ISAMC_filecat_sISAMC_filecat
 
typedef struct ISAMC_M_s ISAMC_M
 
typedef struct ISAMC_I_s ISAMC_I
 

Functions

void isamc_getmethod (ISAMC_M *m)
 
ISAMC isamc_open (BFiles bfs, const char *name, int writeflag, ISAMC_M *method)
 
int isamc_close (ISAMC is)
 
void isamc_merge (ISAMC is, ISAM_P *pos, ISAMC_I *data)
 
ISAMC_PP isamc_pp_open (ISAMC is, ISAM_P pos)
 
void isamc_pp_close (ISAMC_PP pp)
 
int isamc_read_item (ISAMC_PP pp, char **dst)
 
int isamc_pp_read (ISAMC_PP pp, void *buf)
 
zint isamc_pp_num (ISAMC_PP pp)
 
zint isamc_block_used (ISAMC is, int type)
 
int isamc_block_size (ISAMC is, int type)
 

Macro Definition Documentation

#define isamc_block (   x)    ((x) >> 3)

Definition at line 91 of file isamc.h.

Referenced by isamc_pp_open(), and isamc_trunc_cmp().

#define isamc_type (   x)    ((x) & 7)

Definition at line 90 of file isamc.h.

Referenced by inv_stat_handle(), isamc_pp_open(), and isamc_trunc_cmp().

Typedef Documentation

typedef zint ISAM_P

Definition at line 28 of file isamc.h.

typedef struct ISAMC_s* ISAMC

Definition at line 30 of file isamc.h.

typedef struct ISAMC_filecat_s * ISAMC_filecat
typedef struct ISAMC_I_s ISAMC_I
typedef struct ISAMC_M_s ISAMC_M
typedef struct ISAMC_PP_s* ISAMC_PP

Definition at line 31 of file isamc.h.

Function Documentation

int isamc_block_size ( ISAMC  is,
int  type 
)
zint isamc_block_used ( ISAMC  is,
int  type 
)
int isamc_close ( ISAMC  is)
void isamc_getmethod ( ISAMC_M m)
void isamc_merge ( ISAMC  is,
ISAM_P pos,
ISAMC_I data 
)
ISAMC isamc_open ( BFiles  bfs,
const char *  name,
int  writeflag,
ISAMC_M method 
)
void isamc_pp_close ( ISAMC_PP  pp)
zint isamc_pp_num ( ISAMC_PP  pp)

Definition at line 586 of file isamc.c.

References ISAMC_PP_s::numKeys.

Referenced by inv_stat_handle(), and isamc_merge().

ISAMC_PP isamc_pp_open ( ISAMC  is,
ISAM_P  pos 
)
int isamc_pp_read ( ISAMC_PP  pp,
void *  buf 
)

Definition at line 510 of file isamc.c.

References isamc_read_item().

Referenced by inv_stat_handle(), r_read(), and rset_trunc_r().

int isamc_read_item ( ISAMC_PP  pp,
char **  dst 
)