pub fn read_artifact( bytes: &[u8], ) -> Result<(ProgramImage, Option<FunctionTable>), LoadError>
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.
.cdlb
None
Returns a LoadError if the header is wrong or either part fails to decode.
LoadError