Skip to main content

read_bytes

Function read_bytes 

Source
pub fn read_bytes(bytes: &[u8]) -> Result<CompiledApp, ArtifactError>
Expand description

Decode an artifact from an in-memory byte slice: the byte-slice counterpart of read. Used by the link-not-embed launcher path, where the compiler produces LMNA bytes in-process and hands them across the C-ABI (lumen_app_new_from_lmna) instead of writing a file. Thin alias over deserialize; validates magic + version identically.