Skip to main content

Module core_io

Module core_io 

Source
Expand description

APR format core I/O — re-export seam over the sovereign apr-format leaf.

Issue #2231: the v1 container save/load/inspect path moved to the apr-format leaf crate. This module re-exports the leaf’s public API so existing aprender::format::* paths keep resolving, and keeps the framework-only bits that genuinely depend on aprender-core (the bundle::MappedFile-backed load_mmap, and the feature-gated encryption/signing helpers, which pull aes_gcm / argon2 / ed25519_dalek).

Constants§

MMAP_THRESHOLD
Threshold for switching to mmap loading (1MB).

Functions§

inspect
Inspect a model file without loading the payload. Delegates to the leaf.
inspect_bytes
Inspect model bytes without loading the payload. Delegates to the leaf.
load
Load a model from a .apr (v1 APRN) file. Delegates to the sovereign leaf.
load_auto
Load with automatic strategy selection based on file size. Delegates to the leaf.
load_from_bytes
Load a model from a byte slice. Delegates to the sovereign leaf.
load_mmap
Load a model using memory-mapped I/O via aprender’s bundle::MappedFile.
save
Save a model to .apr (v1 APRN) format. Delegates to the sovereign leaf.