IDZEBRA  2.1.4
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

◆ isamc_block

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

Definition at line 91 of file isamc.h.

Referenced by isamc_pp_open(), and isamc_trunc_cmp().

◆ isamc_type

#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

◆ ISAM_P

typedef zint ISAM_P

Definition at line 28 of file isamc.h.

◆ ISAMC

typedef struct ISAMC_s* ISAMC

Definition at line 30 of file isamc.h.

◆ ISAMC_filecat

typedef struct ISAMC_filecat_s * ISAMC_filecat

◆ ISAMC_I

typedef struct ISAMC_I_s ISAMC_I

◆ ISAMC_M

typedef struct ISAMC_M_s ISAMC_M

◆ ISAMC_PP

typedef struct ISAMC_PP_s* ISAMC_PP

Definition at line 31 of file isamc.h.

Function Documentation

◆ isamc_block_size()

int isamc_block_size ( ISAMC  is,
int  type 
)

◆ isamc_block_used()

zint isamc_block_used ( ISAMC  is,
int  type 
)

◆ isamc_close()

int isamc_close ( ISAMC  is)

◆ isamc_getmethod()

void isamc_getmethod ( ISAMC_M m)

◆ isamc_merge()

void isamc_merge ( ISAMC  is,
ISAM_P pos,
ISAMC_I data 
)

◆ isamc_open()

ISAMC isamc_open ( BFiles  bfs,
const char *  name,
int  writeflag,
ISAMC_M method 
)

◆ isamc_pp_close()

void isamc_pp_close ( ISAMC_PP  pp)

◆ isamc_pp_num()

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_open()

ISAMC_PP isamc_pp_open ( ISAMC  is,
ISAM_P  pos 
)

◆ isamc_pp_read()

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().

◆ isamc_read_item()

int isamc_read_item ( ISAMC_PP  pp,
char **  dst 
)