- Timestamp:
- 2012-02-28T13:59:00+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/indexers/mg/lib/bitio_random.h
r16583 r25147 43 43 FILE *File; 44 44 unsigned char *Buf; 45 unsignedlong Base;46 unsignedlong Used;47 unsignedlong pos;48 unsignedlong len;49 unsignedlong sft;45 mg_u_long Base; 46 mg_u_long Used; 47 mg_u_long pos; 48 mg_u_long len; 49 mg_u_long sft; 50 50 } 51 51 random_bitio_state; … … 55 55 56 56 57 void BIO_Random_Start (FILE * f, unsignedlong len,57 void BIO_Random_Start (FILE * f, mg_u_long len, 58 58 random_bitio_state * bs); 59 59 void BIO_Random_Done (random_bitio_state * bs); … … 61 61 62 62 63 void BIO_Random_Decode_Start (void *buf, unsignedlong pos,63 void BIO_Random_Decode_Start (void *buf, mg_u_long pos, 64 64 random_bitio_state * bs); 65 65 … … 69 69 70 70 71 void BIO_Random_Unary_Encode ( unsignedlong val, random_bitio_state * bs,72 unsignedlong *bits);73 unsignedlong BIO_Random_Unary_Decode (random_bitio_state * bs,74 unsignedlong *bits);71 void BIO_Random_Unary_Encode (mg_u_long val, random_bitio_state * bs, 72 mg_u_long *bits); 73 mg_u_long BIO_Random_Unary_Decode (random_bitio_state * bs, 74 mg_u_long *bits); 75 75 76 76 77 77 78 void BIO_Random_Binary_Encode ( unsigned long val, unsignedlong b,79 random_bitio_state * bs, unsignedlong *bits);80 unsigned long BIO_Random_Binary_Decode (unsignedlong b, random_bitio_state * bs,81 unsignedlong *bits);78 void BIO_Random_Binary_Encode (mg_u_long val, mg_u_long b, 79 random_bitio_state * bs, mg_u_long *bits); 80 mg_u_long BIO_Random_Binary_Decode (mg_u_long b, random_bitio_state * bs, 81 mg_u_long *bits); 82 82 83 83 84 84 85 void BIO_Random_Gamma_Encode ( unsignedlong val, random_bitio_state * bs,86 unsignedlong *bits);87 unsignedlong BIO_Random_Gamma_Decode (random_bitio_state * bs,88 unsignedlong *bits);85 void BIO_Random_Gamma_Encode (mg_u_long val, random_bitio_state * bs, 86 mg_u_long *bits); 87 mg_u_long BIO_Random_Gamma_Decode (random_bitio_state * bs, 88 mg_u_long *bits); 89 89 90 90 91 91 92 void BIO_Random_Delta_Encode ( unsignedlong val, random_bitio_state * bs,93 unsignedlong *bits);94 unsignedlong BIO_Random_Delta_Decode (random_bitio_state * bs,95 unsignedlong *bits);92 void BIO_Random_Delta_Encode (mg_u_long val, random_bitio_state * bs, 93 mg_u_long *bits); 94 mg_u_long BIO_Random_Delta_Decode (random_bitio_state * bs, 95 mg_u_long *bits); 96 96 97 97 98 void BIO_Random_Elias_Encode ( unsigned long val, unsignedlong b, double s,99 random_bitio_state * bs, unsignedlong *bits);100 unsigned long BIO_Random_Elias_Decode (unsignedlong b, double s,98 void BIO_Random_Elias_Encode (mg_u_long val, mg_u_long b, double s, 99 random_bitio_state * bs, mg_u_long *bits); 100 mg_u_long BIO_Random_Elias_Decode (mg_u_long b, double s, 101 101 random_bitio_state * bs, 102 unsignedlong *bits);102 mg_u_long *bits); 103 103 104 104 105 void BIO_Random_Bblock_Encode ( unsigned long val, unsignedlong b,106 random_bitio_state * bs, unsignedlong *bits);107 unsigned long BIO_Random_Bblock_Decode (unsignedlong b,105 void BIO_Random_Bblock_Encode (mg_u_long val, mg_u_long b, 106 random_bitio_state * bs, mg_u_long *bits); 107 mg_u_long BIO_Random_Bblock_Decode (mg_u_long b, 108 108 random_bitio_state * bs, 109 unsignedlong *bits);109 mg_u_long *bits); 110 110 111 111 112 void BIO_Random_Seek ( unsignedlong pos, random_bitio_state * bs);112 void BIO_Random_Seek (mg_u_long pos, random_bitio_state * bs); 113 113 114 114 void BIO_Random_Flush (random_bitio_state * bs); 115 115 116 unsignedlong BIO_Random_Tell (random_bitio_state * bs);116 mg_u_long BIO_Random_Tell (random_bitio_state * bs); 117 117 118 118 #ifdef USE_LONG_LONG
Note:
See TracChangeset
for help on using the changeset viewer.