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

Go to the source code of this file.

Data Structures

struct  ISAMC_head
 
struct  ISAMC_file_s
 
struct  ISAMC_s
 
struct  ISAMC_PP_s
 

Macros

#define ISAMC_BLOCK_OFFSET_1   (sizeof(zint)+sizeof(ISAMC_BLOCK_SIZE)+sizeof(zint))
 
#define ISAMC_BLOCK_OFFSET_N   (sizeof(zint)+sizeof(ISAMC_BLOCK_SIZE))
 

Typedefs

typedef unsigned ISAMC_BLOCK_SIZE
 
typedef struct ISAMC_file_sISAMC_file
 

Functions

zint isamc_alloc_block (ISAMC is, int cat)
 
void isamc_release_block (ISAMC is, int cat, zint pos)
 
int isamc_read_block (ISAMC is, int cat, zint pos, char *dst)
 
int isamc_write_block (ISAMC is, int cat, zint pos, char *src)
 

Macro Definition Documentation

#define ISAMC_BLOCK_OFFSET_1   (sizeof(zint)+sizeof(ISAMC_BLOCK_SIZE)+sizeof(zint))

Definition at line 93 of file isamc-p.h.

Referenced by flush_blocks(), get_border(), isamc_merge(), and isamc_pp_open().

#define ISAMC_BLOCK_OFFSET_N   (sizeof(zint)+sizeof(ISAMC_BLOCK_SIZE))

Definition at line 94 of file isamc-p.h.

Referenced by flush_blocks(), get_border(), isamc_merge(), isamc_read_item(), and isamc_write_dblock().

Typedef Documentation

typedef unsigned ISAMC_BLOCK_SIZE

Definition at line 32 of file isamc-p.h.

typedef struct ISAMC_file_s * ISAMC_file

Function Documentation

zint isamc_alloc_block ( ISAMC  is,
int  cat 
)
int isamc_read_block ( ISAMC  is,
int  cat,
zint  pos,
char *  dst 
)

Definition at line 237 of file isamc.c.

References ISAMC_file_s::bf, bf_read(), ISAMC_s::files, and ISAMC_file_s::no_reads.

Referenced by isamc_pp_open(), and isamc_read_item().

void isamc_release_block ( ISAMC  is,
int  cat,
zint  pos 
)
int isamc_write_block ( ISAMC  is,
int  cat,
zint  pos,
char *  src 
)