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

◆ ISAMC_BLOCK_OFFSET_1

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

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

◆ ISAMC_BLOCK_OFFSET_N

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

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

Typedef Documentation

◆ ISAMC_BLOCK_SIZE

typedef unsigned ISAMC_BLOCK_SIZE

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

◆ ISAMC_file

typedef struct ISAMC_file_s * ISAMC_file

Function Documentation

◆ isamc_alloc_block()

zint isamc_alloc_block ( ISAMC  is,
int  cat 
)

◆ isamc_read_block()

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

Definition at line 238 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().

◆ isamc_release_block()

void isamc_release_block ( ISAMC  is,
int  cat,
zint  pos 
)

◆ isamc_write_block()

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