Skip to main content

Module model

Module model 

Source
Expand description

Borrowed view-models the ABI templates render: the Core ABI, the runtime ABI, the word tables, and the golden XXH64 vectors. No owned intermediate spec: every name, type, and doc string is a &'a str into the nativeview-abi descriptors.

Structs§

AbiModel
The Core ABI (nv_abi.generated.h): app-module vtables, values, events, and the word-table view every scene reader indexes.
HashVector
One golden XXH64 vector: every host suite hashes bytes with seed and expects expected.
HexLiteral
An upper-case 0x... literal of fixed width, written straight into the template output.
ModuleAbiModel
Standalone capability-module C ABI descriptor (nv_<stem>_abi.generated.h), validated with the same cross-data-model layout engine as AbiModel and RuntimeAbiModel.
RuntimeAbiModel
The embedding-host runtime ABI (nv_runtime_abi.generated.h), rendered on top of the Core header it includes: its records must not redeclare any record of base.
U64Split
A 64-bit value with its (lo, hi) u32 halves: Dart / TypeScript spell only the halves, so no integer literal above 2^53 ever reaches a JavaScript number.

Constants§

NO_ALIASES
Empty alias slice for Askama templates that need an explicitly typed &[AbiAliasDescriptor].

Functions§

bare_enum_prefix
c_enum_prefix without the NV_ namespace (NV_VAL_ -> VAL_).
c_enum_prefix
C constant prefix of an enum’s variants (c_prefix, else SCREAMING_NAME_).
hash_vectors
The golden vectors: every tail length branch, multi-stripe input, non-ASCII UTF-8, the official Cyan4973 sanity buffer, and seeds with the high bit set.
interface_id
Interface ID integer of a modular vtable.
is_dart_fallback
true for the variant Dart’s fromCode maps every unknown code to.
max_len
Longest vector input in bytes (C suites size their scratch buffers with it).
module_name
Module name of a modular vtable (module_name, falling back to name).