wamr_sys

Function wasm_runtime_get_file_package_type

Source
pub unsafe extern "C" fn wasm_runtime_get_file_package_type(
    buf: *const u8,
    size: u32,
) -> package_type_t
Expand description

Get the package type of a buffer (same as get_package_type).

@param buf the package buffer @param size the package buffer size

@return the package type, return Package_Type_Unknown if the type is unknown