MCPcopy Create free account
hub / github.com/antirez/rax / raxGenericInsert

Function raxGenericInsert

rax.c:509–900  ·  view source on GitHub ↗

Insert the element 's' of size 'len', setting as auxiliary data * the pointer 'data'. If the element is already present, the associated * data is updated (only if 'overwrite' is set to 1), and 0 is returned, * otherwise the element is inserted and 1 is returned. On out of memory the * function returns 0 as well but sets errno to ENOMEM, otherwise errno will * be set to 0. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

raxInsertFunction · 0.85
raxTryInsertFunction · 0.85

Calls 8

raxLowWalkFunction · 0.85
raxReallocForDataFunction · 0.85
raxGetDataFunction · 0.85
raxSetDataFunction · 0.85
raxNewNodeFunction · 0.85
raxCompressNodeFunction · 0.85
raxAddChildFunction · 0.85
raxRemoveFunction · 0.85

Tested by

no test coverage detected