[][src]Function wamr_sys::get_package_type

pub unsafe extern "C" fn get_package_type(
    buf: *const u8,
    size: u32
) -> package_type_t

Get the package type of a buffer.

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

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