MCPcopy Create free account
hub / github.com/GregoryFaust/samblaster / getHashNode

Function getHashNode

sbhash.cpp:118–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118hashNode_t * getHashNode()
119{
120 if (hashNodeFreeList == NULL) makeMoreHashNodes();
121 hashNode_t * node = hashNodeFreeList;
122 hashNodeFreeList = hashNodeFreeList->next;
123 node->next = NULL;
124 for (int i=0; i<HASHNODE_PAYLOAD_SIZE; i++) node->values[i] = 0;
125 return node;
126}
127
128// I don't think this is currently being called, as we always put the entire string of nodes on the freelist.
129void disposeHashNode(hashNode_t * node)

Callers 1

hashTableInsertFunction · 0.85

Calls 1

makeMoreHashNodesFunction · 0.85

Tested by

no test coverage detected