RAX helper functions.
More...
#include "dist/rax/rax.h"
#include "dist/sds/sds.h"
Go to the source code of this file.
◆ rax_free_data_callback
| typedef void(* rax_free_data_callback) (void *data) |
Definition of callback to free radix data
◆ rax_free_data()
Frees a rax tree and its data with a free_cb
- Parameters
-
| r | rax tree to free |
| free_cb | callback to free data or NULL to free a pointer |
◆ rax_free_sds_data()
| void rax_free_sds_data |
( |
rax * |
r | ) |
|
Frees a rax tree and its sds data
- Parameters
-
◆ rax_insert_no_dup()
| void rax_insert_no_dup |
( |
rax * |
r, |
|
|
sds |
key, |
|
|
void * |
data |
|
) |
| |
Inserts the key into the radix tree. Appends random chars to the key until it is uniq.
- Parameters
-
| r | rax tree to insert |
| key | key to insert |
| data | data to insert |