MCPcopy Create free account
hub / github.com/audacity/audacity / idxMalloc

Function idxMalloc

lib-src/sqlite/shell.c:8532–8543  ·  view source on GitHub ↗

** Allocate and return nByte bytes of zeroed memory using sqlite3_malloc(). ** If the allocation fails, set *pRc to SQLITE_NOMEM and return NULL. */

Source from the content-addressed store, hash-verified

8530** If the allocation fails, set *pRc to SQLITE_NOMEM and return NULL.
8531*/
8532static void *idxMalloc(int *pRc, int nByte){
8533 void *pRet;
8534 assert( *pRc==SQLITE_OK );
8535 assert( nByte>0 );
8536 pRet = sqlite3_malloc(nByte);
8537 if( pRet ){
8538 memset(pRet, 0, nByte);
8539 }else{
8540 *pRc = SQLITE_NOMEM;
8541 }
8542 return pRet;
8543}
8544
8545/*
8546** Initialize an IdxHash hash table.

Callers 11

idxHashAddFunction · 0.85
idxNewConstraintFunction · 0.85
expertConnectFunction · 0.85
expertBestIndexFunction · 0.85
expertOpenFunction · 0.85
idxGetTableInfoFunction · 0.85
idxAuthCallbackFunction · 0.85
idxPopulateOneStat1Function · 0.85
idxPopulateStat1Function · 0.85
sqlite3_expert_newFunction · 0.85
sqlite3_expert_sqlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected