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

Function ktxHashList_Sort

lib/hashlist.c:480–491  ·  view source on GitHub ↗

* @memberof ktxHashList @public * @~English * @brief Sort a hash list in order of the UTF8 codepoints. * * @param [in] pHead pointer to the head of the target hash list. * * @return KTX_SUCCESS or one of the following error codes. * * @exception KTX_INVALID_VALUE if @p This is NULL. */

Source from the content-addressed store, hash-verified

478 * @exception KTX_INVALID_VALUE if @p This is NULL.
479 */
480KTX_error_code
481ktxHashList_Sort(ktxHashList* pHead)
482{
483 if (pHead) {
484 //ktxKVListEntry* kv = (ktxKVListEntry*)pHead;
485
486 HASH_SORT(*pHead, sort_by_key_codepoint);
487 return KTX_SUCCESS;
488 } else {
489 return KTX_INVALID_VALUE;
490 }
491}
492
493
494/**

Callers 5

writer2.cFile · 0.85
runTestMethod · 0.85
constructListMethod · 0.85
resizeMethod · 0.85

Calls

no outgoing calls

Tested by 2

runTestMethod · 0.68
constructListMethod · 0.68