nx_kv_store.nx
buildroot/runtime/nx_kv_store.nx
about
nx_kv_store.nx -- Provides an append-only key-value store with linear-scan index for session and config persistence.
dependencies 0 imports · 5 importers
imports: none
imported by: nx_admin_login_flow.nxnx_kv_store_test.nxnx_wiki_https_daemon.nxnx_wiki_https_daemon_mv.nxnx_wiki_main.nx
structs
| 75 | struct NxKvStore |
consts
| 2 | const NXKV_MAGIC_1099511628211: i64 = 1099511628211 |
| 49 | const NXKV_OK: i64 = 0 |
| 50 | const NXKV_NOT_FOUND: i64 = 1 |
| 51 | const NXKV_OOM_DATA: i64 = 2 |
| 52 | const NXKV_OOM_INDEX: i64 = 3 |
| 53 | const NXKV_BAD_RECORD: i64 = 4 |
| 54 | const NXKV_BAD_ARG: i64 = 5 |
| 55 | const NXKV_VERDICT_N: i64 = 6 |
| 87 | const NX_KV_STORE_BYTES: i64 = 48 // 6 i64 fields |
functions
| 57 | func nxkv_verdict_is_valid(v: i64) -> i64 called by 1: main |
| 63 | func nxkv_verdict_name(v: i64) -> *u8 called by 1: main |
| 93 | func nx_kv_store_init( |
| 113 | func nxkv_fnv1a_64(bytes: *u8, n: i64) -> i64 |
| 127 | func nxkv_put_u32_be(buf: *u8, off: i64, v: i64) -> i64 called by 1: nx_kv_store_put |
| 135 | func nxkv_get_u32_be(buf: *u8, off: i64) -> i64 |
| 144 | func nxkv_put_i64_be(buf: *u8, off: i64, v: i64) -> i64 |
| 155 | func nxkv_get_i64_be(buf: *u8, off: i64) -> i64 |
| 169 | func nxkv_index_entry_offset(kv: *NxKvStore, i: i64) -> i64 |
| 173 | func nxkv_index_get_hash(kv: *NxKvStore, i: i64) -> i64 |
| 177 | func nxkv_index_get_record_off(kv: *NxKvStore, i: i64) -> i64 |
| 181 | func nxkv_index_set_entry(kv: *NxKvStore, i: i64, |
| 195 | func nxkv_find_record_off(kv: *NxKvStore, |
| 229 | func nx_kv_store_put( |
| 273 | func nx_kv_store_get( called by 2: nx_alogin_validate_sessionmain calls 3: nxkv_fnv1a_64nxkv_find_record_offnxkv_get_u32_be |
| 295 | func nx_kv_store_contains( |
| 308 | func nx_kv_store_len(kv: *NxKvStore) -> i64 called by 1: main |
| 313 | func nx_kv_store_bytes_used(kv: *NxKvStore) -> i64 called by 1: main |
| 324 | func nx_kv_store_replay(kv: *NxKvStore, pre_loaded_n: i64) -> i64 |