Skip to main content

read_artifact

Function read_artifact 

Source
pub fn read_artifact(
    bytes: &[u8],
) -> Result<(ProgramImage, Option<FunctionTable>), LoadError>
Expand description

Reads a .cdlb back into its image and the function table that follows it, for a tool that works on the program rather than runs it. The table is None for an artifact written without one.

ยงErrors

Returns a LoadError if the header is wrong or either part fails to decode.