Changeset 23508 for main/branches/64_bit_Greenstone/greenstone2/common-src/indexers/mg/lib/bitio_mems.h
- Timestamp:
- 2010-12-17T14:04:10+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/branches/64_bit_Greenstone/greenstone2/common-src/indexers/mg/lib/bitio_mems.h
r16583 r23508 38 38 { 39 39 unsigned char *Base; 40 unsignedlong pos;40 mg_u_long pos; 41 41 } 42 42 mems_bitio_state; … … 46 46 47 47 48 void BIO_Mems_Encode_Start (char *buf, unsignedlong pos, mems_bitio_state * bs);48 void BIO_Mems_Encode_Start (char *buf, mg_u_long pos, mems_bitio_state * bs); 49 49 void BIO_Mems_Encode_Done (mems_bitio_state * bs); 50 50 51 51 52 52 53 void BIO_Mems_Decode_Start (void *buf, unsignedlong pos, mems_bitio_state * bs);53 void BIO_Mems_Decode_Start (void *buf, mg_u_long pos, mems_bitio_state * bs); 54 54 55 55 56 56 57 void BIO_Mems_Unary_Encode ( unsignedlong val, mems_bitio_state * bs,58 unsignedlong *bits);59 unsignedlong BIO_Mems_Unary_Decode (mems_bitio_state * bs,60 unsignedlong *bits);57 void BIO_Mems_Unary_Encode (mg_u_long val, mems_bitio_state * bs, 58 mg_u_long *bits); 59 mg_u_long BIO_Mems_Unary_Decode (mems_bitio_state * bs, 60 mg_u_long *bits); 61 61 62 62 63 63 64 void BIO_Mems_Binary_Encode ( unsigned long val, unsignedlong b,65 mems_bitio_state * bs, unsignedlong *bits);66 unsigned long BIO_Mems_Binary_Decode (unsignedlong b, mems_bitio_state * bs,67 unsignedlong *bits);64 void BIO_Mems_Binary_Encode (mg_u_long val, mg_u_long b, 65 mems_bitio_state * bs, mg_u_long *bits); 66 mg_u_long BIO_Mems_Binary_Decode (mg_u_long b, mems_bitio_state * bs, 67 mg_u_long *bits); 68 68 69 69 70 70 71 void BIO_Mems_Gamma_Encode ( unsignedlong val, mems_bitio_state * bs,72 unsignedlong *bits);73 unsigned long BIO_Mems_Gamma_Decode (mems_bitio_state * bs, unsignedlong *bits);71 void BIO_Mems_Gamma_Encode (mg_u_long val, mems_bitio_state * bs, 72 mg_u_long *bits); 73 mg_u_long BIO_Mems_Gamma_Decode (mems_bitio_state * bs, mg_u_long *bits); 74 74 75 75 76 76 77 void BIO_Mems_Delta_Encode ( unsignedlong val, mems_bitio_state * bs,78 unsignedlong *bits);79 unsigned long BIO_Mems_Delta_Decode (mems_bitio_state * bs, unsignedlong *bits);77 void BIO_Mems_Delta_Encode (mg_u_long val, mems_bitio_state * bs, 78 mg_u_long *bits); 79 mg_u_long BIO_Mems_Delta_Decode (mems_bitio_state * bs, mg_u_long *bits); 80 80 81 81 82 void BIO_Mems_Elias_Encode ( unsigned long val, unsignedlong b, double s,83 mems_bitio_state * bs, unsignedlong *bits);84 unsigned long BIO_Mems_Elias_Decode (unsignedlong b, double s,85 mems_bitio_state * bs, unsignedlong *bits);82 void BIO_Mems_Elias_Encode (mg_u_long val, mg_u_long b, double s, 83 mems_bitio_state * bs, mg_u_long *bits); 84 mg_u_long BIO_Mems_Elias_Decode (mg_u_long b, double s, 85 mems_bitio_state * bs, mg_u_long *bits); 86 86 87 87 88 void BIO_Mems_Bblock_Encode ( unsigned long val, unsignedlong b,89 mems_bitio_state * bs, unsignedlong *bits);90 unsigned long BIO_Mems_Bblock_Decode (unsignedlong b, mems_bitio_state * bs,91 unsignedlong *bits);88 void BIO_Mems_Bblock_Encode (mg_u_long val, mg_u_long b, 89 mems_bitio_state * bs, mg_u_long *bits); 90 mg_u_long BIO_Mems_Bblock_Decode (mg_u_long b, mems_bitio_state * bs, 91 mg_u_long *bits); 92 92 93 93 94 void BIO_Mems_Decode_Seek ( unsignedlong pos, mems_bitio_state * bs);94 void BIO_Mems_Decode_Seek (mg_u_long pos, mems_bitio_state * bs); 95 95 96 96
Note:
See TracChangeset
for help on using the changeset viewer.