createFunction

fun <T : Function<*>> createFunction(funcName: String, type: KType, config: FFIFuncConfig, required: Boolean): T