MCPcopy Create free account

hub / github.com/antirez/rax / functions

Functions80 in github.com/antirez/rax

↓ 32 callersFunctionraxInsert
Overwriting insert. Just a wrapper for raxGenericInsert() that will * update the element if there is already one for the same key. */
rax.c:904
↓ 29 callersFunctionrc4rand
rc4rand.c:67
↓ 20 callersFunctionraxGetData
Get the node auxiliary data. */
rax.c:239
↓ 15 callersFunctionraxFree
Free a whole radix tree. */
rax.c:1249
↓ 15 callersFunctionraxNew
Allocate a new rax and return its pointer. On out of memory the function * returns NULL. */
rax.c:203
↓ 13 callersFunctionraxIteratorAddChars
Append characters at the current key string of the iterator 'it'. This * is a low level function used to implement the iterator, not callable by * t
rax.c:1272
↓ 12 callersFunctionustime
Return the UNIX time in microseconds */
rax-test.c:194
↓ 11 callersFunctionfuzzTest
Perform a fuzz test, returns 0 on success, 1 on error. */
rax-test.c:253
↓ 11 callersFunctionraxSeek
Seek an iterator at the specified element. * Return 0 if the seek failed for syntax error or out of memory. Otherwise * 1 is returned. When 0 is ret
rax.c:1510
↓ 10 callersFunctionraxFind
Find a key in the rax, returns raxNotFound special void pointer value * if the item was not found, otherwise the value associated with the * item is
rax.c:918
↓ 10 callersFunctionraxStart
Initialize a Rax iterator. This call should be performed a single time * to initialize the iterator, and must be followed by a raxSeek() call, * oth
rax.c:1258
↓ 10 callersFunctionraxStop
Free the iterator. */
rax.c:1807
↓ 9 callersFunctionint2key
rax-test.c:219
↓ 9 callersFunctionraxSetData
Set the node auxiliary data to the specified pointer. */
rax.c:226
↓ 8 callersFunctionraxNext
Go to the next element in the scope of the iterator 'it'. * If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is * returned. In case
rax.c:1696
↓ 7 callersFunctionraxStackPush
Push an item into the stack, returns 1 on success, 0 on out of memory. */
rax.c:102
↓ 6 callersFunctionraxStackPop
Pop an item from the stack, the function returns NULL if there are no * items to pop. */
rax.c:131
↓ 5 callersFunctionraxIteratorNextStep
Do an iteration step towards the next element. At the end of the step the * iterator key will represent the (new) current key. If it is not possible
rax.c:1313
↓ 5 callersFunctionraxRemove
Remove the specified item. Returns 1 if the item was found and * deleted, 0 otherwise. */
rax.c:1022
↓ 4 callersFunctioniteratorFuzzTest
rax-test.c:446
↓ 4 callersFunctionraxIteratorPrevStep
Like raxIteratorNextStep() but implements an iteration step moving * to the lexicographically previous element. The 'noup' option has a similar * ef
rax.c:1433
↓ 4 callersFunctionraxLowWalk
Low level function that walks the tree looking for the string * 's' of 'len' bytes. The function returns the number of characters * of the key that
rax.c:459
↓ 4 callersFunctionraxNewNode
Allocate a new non compressed node with the specified number of children. * If datafiled is true, the allocation is made large enough to hold the *
rax.c:188
↓ 4 callersFunctionraxSize
Return the number of elements inside the radix tree. */
rax.c:1821
↓ 4 callersFunctionraxStackFree
Free the stack in case we used heap allocation. */
rax.c:145
↓ 3 callersFunctionhtRawLookup
Low level hash table lookup function. */
rax-test.c:79
↓ 3 callersFunctionraxIteratorDelChars
Remove the specified number of chars from the right of the current * iterator key. */
rax.c:1295
↓ 3 callersFunctionraxPrev
Go to the previous element in the scope of the iterator 'it'. * If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is * returned. In c
rax.c:1711
↓ 3 callersFunctionraxSeekGreatest
Seek the greatest key in the subtree at the current node. Return 0 on * out of memory, otherwise 1. This is an helper function for different * itera
rax.c:1414
↓ 3 callersFunctionraxShow
Show a tree, as outlined in the comment above. */
rax.c:1887
↓ 2 callersFunctioncompareAB
Utility functions used with qsort() in order to sort the array of strings * in the same way Rax sorts keys (which is, lexicographically considering
rax-test.c:405
↓ 2 callersFunctionhtHash
djb2 hash function. */
rax-test.c:71
↓ 2 callersFunctionraxFindParentLink
Return the memory address where the 'parent' node stores the specified * 'child' pointer, so that the caller can update the pointer with another * o
rax.c:934
↓ 2 callersFunctionraxGenericInsert
Insert the element 's' of size 'len', setting as auxiliary data * the pointer 'data'. If the element is already present, the associated * data is up
rax.c:509
↓ 2 callersFunctionraxReallocForData
realloc the node to make room for auxiliary data in order * to store an item in that node. On out of memory NULL is returned. */
rax.c:219
↓ 2 callersFunctionraxStackInit
Initialize the stack. */
rax.c:94
↓ 2 callersFunctionrc4
rc4rand.c:52
↓ 1 callersFunctionarraySeek
Seek an element in the array, returning the seek index (the index inside the * array). If the seek is not possible (== operator and key not found or
rax-test.c:421
↓ 1 callersFunctionbenchmark
rax-test.c:826
↓ 1 callersFunctioncrc16
crc16.c:82
↓ 1 callersFunctionfuzzTestCluster
Redis Cluster alike fuzz testing. * * This test simulates the radix tree usage made by Redis Cluster in order * to maintain the hash slot -> keys m
rax-test.c:345
↓ 1 callersFunctionhtAdd
Add an elmenet to the hash table, return 1 if the element is new, * 0 if it existed and the value was updated to the new one. */
rax-test.c:94
↓ 1 callersFunctionhtFind
Find an element inside the hash table. Returns htNotFound if the * element is not there, otherwise returns the associated value. */
rax-test.c:132
↓ 1 callersFunctionhtFree
Free the whole hash table including all the linked nodes. */
rax-test.c:139
↓ 1 callersFunctionhtNew
Create a new hash table. */
rax-test.c:64
↓ 1 callersFunctionhtRem
Remove the specified element, returns 1 on success, 0 if the element * was not there already. */
rax-test.c:116
↓ 1 callersFunctionint2alphakey
Turn an uint32_t integer into an alphanumerical key and return its * length. This function is used in order to generate keys that have * a large cha
rax-test.c:175
↓ 1 callersFunctionint2int
This is a simple Feistel network in order to turn every possible * uint32_t input into another "randomly" looking uint32_t. It is a * one to one map
rax-test.c:159
↓ 1 callersFunctioniteratorUnitTests
rax-test.c:593
↓ 1 callersFunctionoomtest
rax-oom-test.c:38
↓ 1 callersFunctionrandomWalkTest
Test the random walk function. */
rax-test.c:553
↓ 1 callersFunctionraxAddChild
Add a new child to the node 'n' representing the character 'c' and return * its new pointer, as well as the child pointer by reference. Additionally
rax.c:256
↓ 1 callersFunctionraxCompressNode
Turn the node 'n', that must be a node without any children, into a * compressed node representing a set of nodes linked one after the other * and h
rax.c:397
↓ 1 callersFunctionraxFreeWithCallback
Free a whole radix tree, calling the specified callback in order to * free the auxiliary data. */
rax.c:1242
↓ 1 callersFunctionraxRandomWalk
Perform a random walk starting in the current position of the iterator. * Return 0 if the tree is empty or on out of memory. Otherwise 1 is returned
rax.c:1735
↓ 1 callersFunctionraxRecursiveFree
This is the core of raxFree(): performs a depth-first scan of the * tree and releases all the nodes found. */
rax.c:1223
↓ 1 callersFunctionraxRecursiveShow
The actual implementation of raxShow(). */
rax.c:1853
↓ 1 callersFunctionraxRemoveChild
Low level child removal from node. The new node pointer (after the child * removal) is returned. Note that this function does not fix the pointer *
rax.c:949
↓ 1 callersFunctionraxStackPeek
Return the stack item at the top of the stack without actually consuming * it. */
rax.c:139
↓ 1 callersFunctionraxTryInsert
Non overwriting insert function: this if an element with the same key * exists, the value is not updated and the function returns 0. * This is a jus
rax.c:911
↓ 1 callersFunctionrc4srand
rc4rand.c:34
↓ 1 callersFunctionregtest1
Regression test #1: Iterator wrong element returned after seek. */
rax-test.c:694
↓ 1 callersFunctionregtest2
Regression test #2: Crash when mixing NULL and not NULL values. */
rax-test.c:721
↓ 1 callersFunctionregtest3
Regression test #3: Wrong access at node value in raxRemoveChild() * when iskey == 1 and isnull == 1: the memmove() was performed including * the va
rax-test.c:738
↓ 1 callersFunctionregtest4
Regression test #4: Github issue #8, iterator does not populate the * data field after seek in case of exact match. The test case is looks odd * bec
rax-test.c:754
↓ 1 callersFunctionregtest5
Less than seek bug when stopping in the middle of a compressed node. */
rax-test.c:775
↓ 1 callersFunctionregtest6
Seek may not populate iterator data. See issue #25. */
rax-test.c:802
↓ 1 callersFunctiontestHugeKey
Compressed nodes can only hold (2^29)-1 characters, so it is important * to test for keys bigger than this amount, in order to make sure that * the
rax-test.c:908
↓ 1 callersFunctiontryInsertUnitTests
Test that raxInsert() / raxTryInsert() overwrite semantic * works as expected. */
rax-test.c:665
FunctioncompareArrayItems
rax-test.c:412
Functionmain
rax-oom-test.c:164
Functionmain
rax-test.c:935
Functionoom_malloc
rax_oom_malloc.h:44
Functionoom_realloc
rax_oom_malloc.h:52
FunctionraxCompare
Compare the key currently pointed by the iterator to the specified * key according to the specified operator. Returns 1 if the comparison is * true,
rax.c:1778
FunctionraxDebugShowNode
Used by debugnode() macro to show info about a given node. */
rax.c:1893
FunctionraxEOF
Return if the iterator is in an EOF state. This happens when raxSeek() * failed to seek an appropriate element, so that raxNext() or raxPrev() * wil
rax.c:1816
FunctionraxSetDebugMsg
When debug messages are enabled, turn them on/off dynamically. By * default they are enabled. Set the state to 0 to disable, and 1 to * re-enable. *
rax.c:81
FunctionraxTouch
Touch all the nodes of a tree returning a check sum. This is useful * in order to make Valgrind detect if there is something wrong while * reading t
rax.c:1926
Functionrc4rand64
rc4rand.c:73