code wiki / _hdl_build / nx_ad_banner_exceed.nx

nx_ad_banner_exceed.nx

buildroot/runtime/_hdl_build/nx_ad_banner_exceed.nx

2483 B51 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind librarytopic ad
docsdependenciesstructsconstsfunctions

about

nx_ad_banner_exceed.nx -- LIB: MEASURED S-class exceed primitives for the banner builder. Organ-graded from LIVE EVIDENCE (measures real emitted bytes), never self-scored. Ladder ABSENT<STUB<BUILT<GATED<MEASURED< EXCEEDS. An axis reaches EXCEEDS only when our MEASURED value is strictly better than a CITED incumbent lower-bound (liar-kill in ex_grade_fewer: equal/worse can NEVER be EXCEEDS). CITED incumbent lower-bound (mainstream display-ad creative, e.g. Google Publisher Tag / DoubleClick): loads the ad-tag library = >=1 THIRD-PARTY SCRIPT; pulls creative + impression/viewability beacons = >=1 EXTERNAL FETCH and >=1 TRACKER (MRC viewability / IAB measurement REQUIRE a measurement script -> tracking implies third-party JS). So incumbent third_party_js>=1, external_fetch>=1, tracker>=1. These are architecture lower-bounds (not fabricated counts); our 0s are MEASURED on the real bytes. Composes nx_ad_serve (as_len). license_tier: ORIGINAL

dependencies 2 imports · 1 importers

nx_ad_serve.nx nx_syscalls.nx nx_ad_banner_exceed.nx nx_ad_banner_exceed_gate.nx

imports: nx_ad_serve.nxnx_syscalls.nx

imported by: nx_ad_banner_exceed_gate.nx

structs

none

consts

15const LV_ABSENT: i64 = 0
16const LV_STUB: i64 = 1
17const LV_BUILT: i64 = 2
18const LV_GATED: i64 = 3
19const LV_MEASURED: i64 = 4
20const LV_EXCEEDS: i64 = 5

functions

23func ex_count(hay: *u8, n: i64, needle: *u8) -> i64
called by 2: ex_external_fetchex_tracker calls 1: as_len
35func ex_external_fetch(b: *u8, n: i64) -> i64 { return ex_count(b, n, "src=" as *u8) + ex_count(b, n, "url(http" as *u8) }
called by 1: main calls 1: ex_count
37func ex_tracker(b: *u8, n: i64) -> i64
called by 1: main calls 1: ex_count
48func ex_grade_fewer(nishi: i64, incumbent: i64) -> i64
called by 1: main