Lines Matching refs:index_cache
731 gi->index_cache = (unsigned char *) realloc(gi->index_cache, sizeof(unsigned char) * idx_size );
732 if (gi->index_cache != NULL) {
733 if (pread(fileno(gi->GeoIPDatabase), gi->index_cache,
763 if (gi->cache == NULL && gi->index_cache == NULL) {
766 } else if (gi->index_cache == NULL) {
770 buf = gi->index_cache + (long)gi->record_length * 2 * offset;
847 if (gi->cache == NULL && gi->index_cache == NULL) {
850 } else if (gi->index_cache == NULL) {
854 buf = gi->index_cache + (long)gi->record_length * 2 * offset;
1075 gi->index_cache = (unsigned char *) malloc(sizeof(unsigned char) * idx_size);
1076 if (gi->index_cache != NULL) {
1077 if (pread(fileno(gi->GeoIPDatabase),gi->index_cache, idx_size, 0) != idx_size ) {
1080 free(gi->index_cache);
1086 gi->index_cache = NULL;
1107 if (gi->index_cache != NULL)
1108 free(gi->index_cache);