ptwm_core::flavor::router
ptwm_core::flavor::router
PlaneCodecRouter: canonical-id-keyed dispatch for both built-in and third-party plane codecs.
ptwm_core::flavor::router
crates/ptwm-core/src/flavor/router.rs:1mod router`PlaneCodecRouter`: canonical-id-keyed dispatch for both built-in and third-party plane codecs.
ptwm_core::flavor::router::decode_hex32
crates/ptwm-core/src/flavor/router.rs:445pub fn decode_hex32(hex: &str) -> Option<[u8; 32]>Decode a 64-character hex string into a 32-byte array. Returns `None` on any parse error (wrong length or non-hex character).
ptwm_core::flavor::router::DispatchedPlaneCodec
crates/ptwm-core/src/flavor/router.rs:55pub trait DispatchedPlaneCodecUniform encode/decode surface exposed by the router.
ptwm_core::flavor::router::find_native_path
crates/ptwm-core/src/flavor/router.rs:359pub fn find_native_path(dir: &Path) -> Result<PathBuf, CodecError>Scan `dir` for a native shared library (`.so` / `.dylib` / `.dll`) and return the first one found.
ptwm_core::flavor::router::find_wasm_path
crates/ptwm-core/src/flavor/router.rs:377pub fn find_wasm_path(dir: &Path) -> Result<PathBuf, CodecError>Scan `dir` for a WASM module (`.wasm`) and return the first one found.
ptwm_core::flavor::router::manifest_entry_for
crates/ptwm-core/src/flavor/router.rs:398pub fn manifest_entry_for(install: &DiscoveredContribution, canonical_id: &CanonicalId) -> Result<ExtensionTableEntry, CodecError>Synthesize a minimal `ExtensionTableEntry` from a `DiscoveredContribution` and a target `CanonicalId`.
ptwm_core::flavor::router::PlaneCodecRouter
crates/ptwm-core/src/flavor/router.rs:213pub struct PlaneCodecRouterResolves a `CanonicalId` to a `Box<dyn DispatchedPlaneCodec>`.
native
Native cdylib loader. Loads a .so / .dylib / .dll via libloading, probes for the per-kind ABI symbols, and exposes a thin handle the dispatcher uses to invoke each method.
third_party
Bridge adapter that exposes a third-party DispatchedPlaneCodec (native or WASM, dispatched by canonical id) as if it were an in-tree crate::codec::PlaneCodec. The container decode loop can then treat every plane uniformly through a single Box<dyn PlaneCodec>.