feat(lander): PoC index pages
This commit is contained in:
parent
222b277eef
commit
e91631dd42
10 changed files with 196 additions and 24 deletions
|
|
@ -98,6 +98,11 @@ lsm_error lsm_entry_attr_insert_uint8_t(lsm_entry_handle *handle, uint8_t type,
|
|||
lsm_error lsm_entry_attr_remove(lsm_str **out, lsm_entry_handle *handle,
|
||||
uint8_t type);
|
||||
|
||||
/**
|
||||
* Retrieve a pointer to the entry's key.
|
||||
*/
|
||||
void lsm_entry_key(const lsm_str **out, lsm_entry_handle *handle);
|
||||
|
||||
/**
|
||||
* A store consisting of LSM entries.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -178,6 +178,15 @@ lsm_error lsm_str_split(lsm_str *s, lsm_str *s2, uint64_t index);
|
|||
* @param s string to append s2 to
|
||||
* @param s2 string to append to s
|
||||
*/
|
||||
lsm_error lsm_str_append(lsm_str *s, lsm_str *s2);
|
||||
lsm_error lsm_str_append(lsm_str *s, const lsm_str *s2);
|
||||
|
||||
/**
|
||||
* Same as `lsm_str_append`, but it takes a C-style string instead.
|
||||
*
|
||||
* @param s string to append c_str to
|
||||
* @param c_str char buffer to append
|
||||
* @param len length of c_str
|
||||
*/
|
||||
lsm_error lsm_str_append_c(lsm_str *s, const char *c_str, uint64_t len);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue