feat(lsm): added trie search
This commit is contained in:
parent
622d644f25
commit
87000e8f73
5 changed files with 124 additions and 6 deletions
|
|
@ -34,6 +34,15 @@ void lsm_str_init_prealloc(lsm_str *str, char *s);
|
|||
*/
|
||||
lsm_error lsm_str_init(lsm_str **ptr, char *s);
|
||||
|
||||
/**
|
||||
* Same as lsm_str_init, except it copies the original string instead of taking
|
||||
* over ownership, leaving the original string untouched.
|
||||
*
|
||||
* @param ptr pointer to store newly allocated pointer
|
||||
* @param s string to copy into lsm string
|
||||
*/
|
||||
lsm_error lsm_str_init_copy(lsm_str **ptr, char *s);
|
||||
|
||||
/**
|
||||
* Deallocate the existing internal string if needed and replace the lsm_str
|
||||
* with a string of length 0, wiping its contents.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue