MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / raxGetData

Function raxGetData

src/rax.c:239–245  ·  view source on GitHub ↗

Get the node auxiliary data. */

Source from the content-addressed store, hash-verified

237
238/* Get the node auxiliary data. */
239void *raxGetData(raxNode *n) {
240 if (n->isnull) return NULL;
241 void **ndata =(void**)((char*)n+raxNodeCurrentLength(n)-sizeof(void*));
242 void *data;
243 memcpy(&data,ndata,sizeof(data));
244 return data;
245}
246
247/* Add a new child to the node 'n' representing the character 'c' and return
248 * its new pointer, as well as the child pointer by reference. Additionally

Callers 12

raxCompressNodeFunction · 0.85
raxGenericInsertFunction · 0.85
raxFindFunction · 0.85
raxRemoveChildFunction · 0.85
raxRemoveFunction · 0.85
raxRecursiveFreeFunction · 0.85
raxIteratorNextStepFunction · 0.85
raxIteratorPrevStepFunction · 0.85
raxSeekFunction · 0.85
raxRandomWalkFunction · 0.85
raxRecursiveShowFunction · 0.85
raxTouchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected