code wiki / (root) / nx_memory.nx

nx_memory.nx

buildroot/runtime/nx_memory.nx

1807 B40 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tooltopic memory
docsdependenciesstructsconstsfunctions

about

nx_memory.nx -- CLI half of the consolidated memory tool (#6 of the 15). READ-ONLY seg-store surface: stores <dir> | get <prefix> <key> | history <prefix> <key> | index <prefix> <idxkey> exit: 0 ok | 3 absent | 4 tombstoned | 2 usage (codes surface in MCP _meta.exit_code) license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_memory_lib.nx nx_memory.nx

imports: nx_memory_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main mx_puts sys_write mx_seq mx_stores sys_openat_rd mx_puts ↻ sys_mmap sys_getdents64 dirent_reclen dirent_name mx_ends mx_slen mx_slen ↻ ss_manifest_dyn ss_manifest_file_dyn sys_mmap ↻ ss_cat ss_readall sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_close sys_munmap mx_putn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap ↻ sys_close ↻ mx_get sys_mmap ↻ ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ↻

structs

none

consts

7const MXC_USAGE_RC: i64 = 2
8const MXC_RC_ABSENT: i64 = 3
9const MXC_RC_TOMB: i64 = 4
10const MXC_ARG_VERB: i64 = 1
11const MXC_ARG_P1: i64 = 2
12const MXC_ARG_P2: i64 = 3
13const MXC_ARGC_P1: i64 = 3
14const MXC_ARGC_P2: i64 = 4

functions

16func main(argc: i64, argv: *i64) -> i64