MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / raxGetData

Function raxGetData

server/src/server/rax.c:284–290  ·  view source on GitHub ↗

Get the node auxiliary data. */

Source from the content-addressed store, hash-verified

282
283/* Get the node auxiliary data. */
284void *raxGetData(raxNode *n) {
285 if (n->isnull) return NULL;
286 void **ndata =(void**)((char*)n+raxNodeCurrentLength(n)-sizeof(void*));
287 void *data;
288 memcpy(&data,ndata,sizeof(data));
289 return data;
290}
291
292/* Return the position where the edge 'c' should be inserted in order to
293 * preserve lexicographic ordering. */

Callers 13

raxCompressNodeNoAllocFunction · 0.85
raxGenericInsertFunction · 0.85
raxFindFunction · 0.85
raxRemoveChildAtPtrFunction · 0.85
raxRemoveFunction · 0.85
raxRecursiveFreeFunction · 0.85
raxIteratorEnterChildFunction · 0.85
raxIteratorPrevStepFunction · 0.85
raxSeekFunction · 0.85
raxRandomWalkFunction · 0.85
raxDefragNextFunction · 0.85
raxRecursiveShowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected