This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | vbyte_getVbyte(cmem, n) |
| #define | vbyte_putVbyte(cmem, n) |
| #define | vbyte_safePutVbyte(cmem, originalN) |
Functions | |
| unsigned char * | vbyte_get64vbyte (unsigned char *cmem, uint8 *n) |
| #define vbyte_getVbyte | ( | cmem, | |||
| n | ) |
Value:
if (1) { \ int B2_GETVBYTE_count = 0; \ \ *(n) = 0; \ while (((unsigned char)(*(cmem)) >= 128)) { \ *(n) |= (*(cmem) & 0x7f) << B2_GETVBYTE_count; \ B2_GETVBYTE_count += 7; \ (cmem)++; \ } \ *(n) |= (unsigned char)(*(cmem)) << B2_GETVBYTE_count; \ (cmem)++; \ } else
Definition at line 3 of file vbyte.h.
Referenced by encoding_insertWilds(), index_print(), index_processQuery(), main(), postings_decodeList(), readdb_getChildren(), readdb_nextVolume(), readdb_open(), and unpack_unpackSubject().
| #define vbyte_putVbyte | ( | cmem, | |||
| n | ) |
Value:
if (1) { \ while ((n) >= 128) { \ *(cmem) = ((n) & 0x7f) | 0x80; \ (n) >>= 7; \ (cmem)++; \ } \ *(cmem) = ((unsigned char) n); \ (cmem)++; \ } else
Definition at line 20 of file vbyte.h.
Referenced by index_addWord(), main(), and postings_addPosting().
| #define vbyte_safePutVbyte | ( | cmem, | |||
| originalN | ) |
Value:
if (1) { \ uint8 n = originalN; \ while ((n) >= 128) { \ *(cmem) = ((n) & 0x7f) | 0x80; \ (n) >>= 7; \ (cmem)++; \ } \ *(cmem) = ((unsigned char) n); \ (cmem)++; \ } else
Definition at line 32 of file vbyte.h.
Referenced by writedb_addSequence(), and writedb_close().
| unsigned char* vbyte_get64vbyte | ( | unsigned char * | cmem, | |
| uint8 * | n | |||
| ) |
Definition at line 4 of file vbyte.c.
References uint8.
Referenced by main(), and readdb_open().
00005 { 00006 int count = 0; 00007 00008 *(n) = 0; 00009 while (((unsigned char)(*(cmem)) >= 128)) { 00010 *(n) |= (uint8)(*(cmem) & 0x7f) << count; 00011 count += 7; 00012 (cmem)++; 00013 } 00014 *(n) |= (uint8)(*(cmem)) << count; 00015 (cmem)++; 00016 00017 return cmem; 00018 }
Here is the caller graph for this function:

1.5.2