Searched defs:hStrCache (Results 1 - 4 of 4) sorted by relevance
/vbox/include/iprt/ |
H A D | strcache.h | 54 * @param hStrCache Handle to the string cache. The nil and default 57 RTDECL(int) RTStrCacheDestroy(RTSTRCACHE hStrCache); variable 65 * @param hStrCache Handle to the string cache. 74 RTDECL(const char *) RTStrCacheEnterN(RTSTRCACHE hStrCache, const char *pchString, size_t cchString); 81 * @param hStrCache Handle to the string cache. 86 RTDECL(const char *) RTStrCacheEnter(RTSTRCACHE hStrCache, const char *psz); 94 * @param hStrCache Handle to the string cache. 103 RTDECL(const char *) RTStrCacheEnterLowerN(RTSTRCACHE hStrCache, const char *pchString, size_t cchString); 110 * @param hStrCache Handle to the string cache. 115 RTDECL(const char *) RTStrCacheEnterLower(RTSTRCACHE hStrCache, cons [all...] |
/vbox/src/VBox/Runtime/generic/ |
H A D | strcache-stubs-generic.cpp | 52 RTDECL(int) RTStrCacheDestroy(RTSTRCACHE hStrCache) argument 54 if ( hStrCache == NIL_RTSTRCACHE 55 || hStrCache == RTSTRCACHE_DEFAULT) 57 return RTMemPoolDestroy((RTMEMPOOL)hStrCache); 62 RTDECL(const char *) RTStrCacheEnterN(RTSTRCACHE hStrCache, const char *pchString, size_t cchString) argument 68 return (const char *)RTMemPoolDupEx((RTMEMPOOL)hStrCache, pchString, cchString, 1); 73 RTDECL(const char *) RTStrCacheEnter(RTSTRCACHE hStrCache, const char *psz) 75 return RTStrCacheEnterN(hStrCache, psz, strlen(psz)); 80 RTDECL(const char *) RTStrCacheEnterLowerN(RTSTRCACHE hStrCache, const char *pchString, size_t cchString) 86 char *pszRet = (char *)RTMemPoolDupEx((RTMEMPOOL)hStrCache, pchStrin [all...] |
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTStrCache.cpp | 44 static void tstShowStats(RTSTRCACHE hStrCache) argument 53 uint32_t cStrings = RTStrCacheGetStats(hStrCache, &cbStrings, &cbChunks, &cbBigEntries, 114 RTSTRCACHE hStrCache; local 115 RTTESTI_CHECK_RC_RETV(RTStrCacheCreate(&hStrCache, "hash performance"), VINF_SUCCESS); 119 RTTESTI_CHECK_RETV(RTStrCacheEnter(hStrCache, apszTests[i]) != NULL); 128 RTTESTI_CHECK(RTStrCacheEnter(hStrCache, apszTests[i]) != NULL); 132 tstShowStats(hStrCache); 133 RTTESTI_CHECK_RC(RTStrCacheDestroy(hStrCache), VINF_SUCCESS); 141 static void tst1(RTSTRCACHE hStrCache) argument 146 RTTESTI_CHECK_RETV(psz = RTStrCacheEnter(hStrCache, "abcdefg 259 RTSTRCACHE hStrCache; local [all...] |
/vbox/src/VBox/Runtime/common/string/ |
H A D | strcache.cpp | 356 RTDECL(int) RTStrCacheDestroy(RTSTRCACHE hStrCache) argument 358 if ( hStrCache == NIL_RTSTRCACHE 359 || hStrCache == RTSTRCACHE_DEFAULT) 362 PRTSTRCACHEINT pThis = hStrCache; 829 RTDECL(const char *) RTStrCacheEnterN(RTSTRCACHE hStrCache, const char *pchString, size_t cchString) argument 831 PRTSTRCACHEINT pThis = hStrCache; 892 RTStrCacheRelease(hStrCache, pEntry->szString); 916 RTDECL(const char *) RTStrCacheEnter(RTSTRCACHE hStrCache, const char *psz) argument 918 return RTStrCacheEnterN(hStrCache, psz, strlen(psz)); 954 RTDECL(const char *) RTStrCacheEnterLowerN(RTSTRCACHE hStrCache, cons argument 963 RTStrCacheEnterLower(RTSTRCACHE hStrCache, const char *psz) argument 1145 RTStrCacheRelease(RTSTRCACHE hStrCache, const char *psz) argument 1195 RTStrCacheGetStats(RTSTRCACHE hStrCache, size_t *pcbStrings, size_t *pcbChunks, size_t *pcbBigEntries, uint32_t *pcHashCollisions, uint32_t *pcHashCollisions2, uint32_t *pcHashInserts, uint32_t *pcRehashes) argument [all...] |
Completed in 48 milliseconds