Skip to main content

Module flat_op

Module flat_op 

Source
Expand description

Generic Askama view-model and emitter for flat 4-byte-aligned (u32-word) operation-stream codecs (nativeview_codec::FlatOpStreamDesc).

One generic template per host language (c, swift, java, dart, ts) renders any validated FlatOpStreamDesc into a zero-allocation streaming validator + decoder next to the static packages/core/host-* runtimes. nativeview-codegen stays module-free: callers (such as nativeview-cli) pass &nativeview_canvas::DRAW_LIST_CODEC_DESC or any other stream descriptor.

Functionsยง

generate_flat_op_codec_files
Generates C++, Swift, Java, Dart, and TypeScript flat word-op stream decoders for desc (with Swift, Java, and Dart emitted into packages/core/host-{swift,java,dart} for standalone codegen tests).
generate_flat_op_codec_files_for_module
Generates flat word-op stream decoders for module cap_dir, placing: