MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / ktxHashList_ConstructCopy

Function ktxHashList_ConstructCopy

lib/hashlist.c:75–84  ·  view source on GitHub ↗

* @memberof ktxHashList @public * @~English * @brief Construct a hash list by copying another. * * @param [in] pHead pointer to head of the list. * @param [in] orig head of the original hash list. */

Source from the content-addressed store, hash-verified

73 * @param [in] orig head of the original hash list.
74 */
75void
76ktxHashList_ConstructCopy(ktxHashList* pHead, ktxHashList orig)
77{
78 ktxHashListEntry* entry = orig;
79 *pHead = NULL;
80 for (; entry != NULL; entry = ktxHashList_Next(entry)) {
81 (void)ktxHashList_AddKVPair(pHead,
82 entry->key, entry->valueLen, entry->value);
83 }
84}
85
86
87/**

Callers 3

ktxHashList_CreateCopyFunction · 0.85
TEST_FFunction · 0.85

Calls 2

ktxHashList_NextFunction · 0.85
ktxHashList_AddKVPairFunction · 0.85

Tested by 1

TEST_FFunction · 0.68