Function executorch_sys::torch::executor::Program_check_header

source ยท
pub unsafe extern "C" fn Program_check_header(
    data: *const c_void,
    size: usize,
) -> Program_HeaderStatus
Expand description

Looks for an ExecuTorch program header in the provided data.

@param[in] data The data from the beginning of a file that might contain an ExecuTorch program. @param[in] size The size of data in bytes. Must be >= kMinHeadBytes.

@returns A value describing the presence of a header in the data.