code wiki / (root) / nx_compare_receipt_lib_t138.nx

nx_compare_receipt_lib_t138.nx

buildroot/runtime/nx_compare_receipt_lib_t138.nx

12712 B309 linesdepth 6pulls 6 transitivereach 3 importersview sourcekind librarytopic compare
docsdependenciesstructsconstsfunctions

about

Private receipt transaction for nx_compare_regen; not adopted. Existing completion rows remain byte-compatible. Sidecar intents are append-only evidence. A PREPARED/PUBLISHED intent without COMPLETED requires reconciliation; this is not automatic replay.

dependencies 1 imports · 2 importers

nx_jrnl_archive_lib_t138.nx nx_compare_receipt_lib_t138.nx nx_compare_receipt_inspect_lib_t13 nx_compare_regen_t138.nx

imports: nx_jrnl_archive_lib_t138.nx

imported by: nx_compare_receipt_inspect_lib_t138.nxnx_compare_regen_t138.nx

structs

18struct RgrTx

consts

5const RGR_I64_MAX: i64 = 9223372036854775807
6const RGR_DECIMAL_BYTES: i64 = 20
7const RGR_ROW_PUNCTUATION_BYTES: i64 = 12
8const RGR_NO_EXTRA_RESERVE: i64 = 0
9const RGR_E_INPUT: i64 = 0-101
10const RGR_E_LOCK: i64 = 0-102
11const RGR_E_CAPACITY: i64 = 0-103
12const RGR_E_TAIL: i64 = 0-104
13const RGR_E_INTENT: i64 = 0-105
14const RGR_E_DURABLE: i64 = 0-106
15const RGR_E_WRITE: i64 = 0-107
16const RGR_E_RENAME: i64 = 0-108
17const RGR_E_COMPLETE: i64 = 0-109

functions

34func rgr_alloc(n: i64) -> *u8
39func rgr_free(b: *u8, n: i64) -> i64
44func rgr_len(s: *u8) -> i64 { return ja_slen(s) }
45func rgr_copy(d: *u8, off: i64, s: *u8) -> i64 { return ja_cat(d, off, s) }
46func rgr_decimal(d: *u8, off: i64, v: i64) -> i64
59func rgr_field(s: *u8) -> i64
66func rgr_id(s: *u8) -> i64
called by 1: rgr_prepare calls 1: rgr_field
83func rgr_write_all(fd: i64, b: *u8, n: i64) -> i64
96func rgr_sync_dir(path: *u8) -> i64
110func rgr_capacity_numbers(block: i64, blocks: i64, reserve: i64, pending: i64) -> i64
called by 1: rgr_capacity
121func rgr_capacity(tx: *RgrTx, path: *u8, pending: i64) -> i64
139func rgr_tail(journal: *u8) -> i64
called by 1: rgr_prepare calls 2: rgr_allocrgr_free
158func rgr_release(tx: *RgrTx) -> i64
called by 1: rg_emit_receipted calls 2: ja_unlockrgr_free
166func rgr_prepare(tx: *RgrTx, journal: *u8, target: *u8, body: *u8, bytes: i64, prev: i64, epoch: i64, id: *u8, reserve: i64) -> i64
246func rgr_state(tx: *RgrTx, state: *u8) -> i64
251func rgr_complete(tx: *RgrTx) -> i64
268func rgr_write_atomic(path: *u8, buf: *u8, n: i64, published: *i64, detail: *i64) -> i64
295func rgr_transact(tx: *RgrTx, journal: *u8, target: *u8, body: *u8, bytes: i64, prev: i64, epoch: i64, id: *u8, reserve: i64) -> i64