IDZEBRA  2.1.2
Data Structures | Macros | Functions
it_key.c File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <yaz/xmalloc.h>
#include <it_key.h>

Go to the source code of this file.

Data Structures

struct  iscz1_code_info
 

Macros

#define CODEC_INLINE
 

Functions

void key_logdump_txt (int logmask, const void *p, const char *txt)
 
void key_logdump (int logmask, const void *p)
 
char * key_print_it (const void *p, char *buf)
 
int key_compare (const void *p1, const void *p2)
 
zint key_get_seq (const void *p)
 
zint key_get_segment (const void *p)
 
int key_qsort_compare (const void *p1, const void *p2)
 
void * iscz1_start (void)
 
void key_init (struct it_key *key)
 
void iscz1_reset (void *vp)
 
void iscz1_stop (void *p)
 
static CODEC_INLINE void iscz1_encode_int (zint d, char **dst)
 
static CODEC_INLINE zint iscz1_decode_int (unsigned char **src)
 
void iscz1_encode (void *vp, char **dst, const char **src)
 
void iscz1_decode (void *vp, char **dst, const char **src)
 

Macro Definition Documentation

#define CODEC_INLINE

Definition at line 34 of file it_key.c.

Function Documentation

void iscz1_decode ( void *  vp,
char **  dst,
const char **  src 
)
static CODEC_INLINE zint iscz1_decode_int ( unsigned char **  src)
static

Definition at line 174 of file it_key.c.

Referenced by iscz1_decode().

void iscz1_encode ( void *  vp,
char **  dst,
const char **  src 
)
static CODEC_INLINE void iscz1_encode_int ( zint  d,
char **  dst 
)
static

Definition at line 160 of file it_key.c.

Referenced by iscz1_encode().

void iscz1_reset ( void *  vp)
void* iscz1_start ( void  )

Definition at line 129 of file it_key.c.

References iscz1_reset().

Referenced by encode_key_init(), key_file_init(), key_isamc_m(), key_isams_m(), main(), and zebra_rec_keys_open().

void iscz1_stop ( void *  p)
int key_compare ( const void *  p1,
const void *  p2 
)
zint key_get_segment ( const void *  p)

Definition at line 103 of file it_key.c.

References it_key::len, and it_key::mem.

Referenced by zebra_key_control_create().

zint key_get_seq ( const void *  p)

Definition at line 96 of file it_key.c.

References it_key::len, and it_key::mem.

Referenced by zebra_key_control_create().

void key_init ( struct it_key key)

Definition at line 137 of file it_key.c.

References IT_KEY_LEVEL_MAX, it_key::len, and it_key::mem.

void key_logdump ( int  logmask,
const void *  p 
)

Definition at line 62 of file it_key.c.

References key_logdump_txt().

void key_logdump_txt ( int  logmask,
const void *  p,
const char *  txt 
)
char* key_print_it ( const void *  p,
char *  buf 
)

Definition at line 67 of file it_key.c.

int key_qsort_compare ( const void *  p1,
const void *  p2 
)

Definition at line 110 of file it_key.c.

References key_compare().

Referenced by key_block_flush_int(), and zebra_index_merge().