Expand description
Shared Direct-First Hybrid FFI lowering model used across all 7 target emitters (Rust, C11,
C++20, Swift 6, Kotlin/JNI, TypeScript/WASM, and Dart) so every language agrees on C ABI
signatures, enum widths, NvBytesSink / NvAsyncBytesDone calling conventions, and
zero-waste wire payload shapes.
Structs§
- Direct
Return Spec - Complete lowered return contract for a Direct-First method.
Enums§
- Direct
ErrKind - Error channel of a Direct-First method return.
- Direct
OkKind - Ok payload shape of a Direct-First method return.
- Direct
Param Kind - How one method parameter crosses a Direct-First C ABI boundary.
- Wire
Payload Shape - Zero-waste wire payload encoding strategy for
ByteTransportrequests, replies, and push events.
Functions§
- camel_
enum_ wire_ write_ method - Canonical camelCase
WireWritermethod name for an enum’s underlying integer repr. - camel_
wire_ write_ method - Canonical camelCase
WireWriterscalar/string/bytes method name shared across Dart, TypeScript, and Kotlin emitters (single source of truth). - classify_
direct_ param - Classifies a parameter type for Direct-First C ABI lowering.
- classify_
wire_ params - Classifies a parameter list (request or event) into a zero-waste wire shape.
- classify_
wire_ single - Classifies a single
HybridTypepayload (reply or single-param request/event). - enum_
repr - Looks up the effective integer repr string (
"u8"/"u16"/"u32"/"i32") of enumname. - enum_
repr_ c_ type - C11 integer typedef matching a
HybridEnumSpec::repr_str(). - enum_
repr_ dart_ ann - Dart
dart:ffistruct field annotation matching aHybridEnumSpec::repr_str(). - enum_
repr_ dart_ ffi_ type - Dart
dart:ffinative integer type matching aHybridEnumSpec::repr_str(). - enum_
repr_ rust_ type - Rust integer repr matching a
HybridEnumSpec::repr_str(). - enum_
repr_ swift_ type - Swift integer raw type matching a
HybridEnumSpec::repr_str(). - fixed_
wire_ size - Positional
nativeview-codecwire byte size iftyhas a fixed, statically known encoded size. - is_
direct_ host - Returns
trueiffmisbinding = "direct"andimpl = "host". - is_
direct_ rust - Returns
trueiffmisbinding = "direct"andimpl = "rust". - mod_
c_ fn_ name - mod_
event_ id_ const - mod_
host_ ops_ name - mod_
method_ id_ const - mod_
schema_ hash_ const - mod_
service_ id_ const - mod_
upper - spec_
has_ direct_ modules - Returns
trueiff any module inspecusesbinding = "direct". - spec_
uses_ legacy_ hybrid_ runtime - Returns
trueiff any module usesbinding = "vtable", any view is present (views usenativeview_abi::hybridprops/events), or any signature referencesHybridType::Value. - wire_
min_ bytes - Conservative minimum encoded byte size of
tyon the positionalnativeview-codecwire (used across Rust and foreign hosts to boundVec<T>pre-allocation against DoS).