コード例 #1
0
ファイル: arcci_common.c プロジェクト: LichKing-lee/nbase-arc
static unsigned int
fi_entry_hash (const void *key)
{
  fi_entry_t *e;
  char buf[1024];

  e = (fi_entry_t *) key;
  sprintf (buf, "%s%d", e->file, e->line);
  return dictGenCaseHashFunction ((unsigned char *) buf, strlen (buf));
}
コード例 #2
0
ファイル: proxy.c プロジェクト: charsyam/hiredis-proxy
unsigned int dictCaseHash(const void *key) {
    return dictGenCaseHashFunction((const unsigned char*)key, strlen(key));
}
コード例 #3
0
ファイル: proxy.c プロジェクト: charsyam/hiredis-proxy
unsigned int dictSdsCaseHash(const void *key) {
    return dictGenCaseHashFunction((const unsigned char*)key, (int)(sdslen((const sds)key)));
}
コード例 #4
0
ファイル: dict_ex.c プロジェクト: skypacer210/Ex
static unsigned int dictSdsCaseHash(const void *key) {
    return dictGenCaseHashFunction((unsigned char*)key, sdslen((char*)key));
}