接口参考

interop_bridge.h · C++ API

按同一接口文件归组浏览,展开条目查看声明、使用说明和版本边界。

阅读相关开发指南 →

这里保留接口声明及来源。逐项运行验证范围以条目记录为准;源文件中的内部实现候选不代表免费 SDK 的交付承诺。

include/kui/script/interop_bridge.h
int
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
using NativeFunction = std::function<int(lua_State*)>;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:104

反馈此接口问题 →
InteropBridge::~InteropBridge
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
~InteropBridge();

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:120

反馈此接口问题 →
InteropBridge::asyncTaskCount
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
u32 asyncTaskCount() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:191

反馈此接口问题 →
InteropBridge::batchCall
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
std::vector<InteropResult> batchCall(const std::vector<BatchEntry>& entries);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:174

反馈此接口问题 →
InteropBridge::benchmark
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
InteropStats benchmark(const String& name, u32 iterations, const std::vector<ScriptValue>& args = {});

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:204

反馈此接口问题 →
InteropBridge::callLua
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
InteropResult callLua(const String& name, const std::vector<ScriptValue>& args = {});

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:157

反馈此接口问题 →
InteropBridge::callLuaById
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
InteropResult callLuaById(u32 id, const ScriptValue* args, u32 argc);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:151

反馈此接口问题 →
InteropBridge::callLuaByIndex
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
InteropResult callLuaByIndex(u32 index, const ScriptValue* args, u32 argc);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:146

反馈此接口问题 →
InteropBridge::callLuaByName
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
InteropResult callLuaByName(const String& name, const ScriptValue* args, u32 argc);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:154

反馈此接口问题 →
InteropBridge::cancelAsync
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
void cancelAsync(u32 taskId);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:185

反馈此接口问题 →
InteropBridge::dispatchNative
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
int dispatchNative(const String& name, lua_State* L);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:160

反馈此接口问题 →
InteropBridge::dispatchNativeByIndex
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
int dispatchNativeByIndex(u32 index, lua_State* L);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:165

反馈此接口问题 →
InteropBridge::getStats
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
const InteropStats* getStats(const String& name) const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:199

反馈此接口问题 →
InteropBridge::getStatsMutable
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
InteropStats* getStatsMutable(const String& name);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:200

反馈此接口问题 →
InteropBridge::InteropBridge
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
explicit InteropBridge(lua_State* L);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:119

反馈此接口问题 →
InteropBridge::InteropBridge
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
InteropBridge(const InteropBridge&) = delete;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:122

反馈此接口问题 →
InteropBridge::isProfilingEnabled
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
bool isProfilingEnabled() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:197

反馈此接口问题 →
InteropBridge::luaFunctionNames
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
std::vector<String> luaFunctionNames() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:210

反馈此接口问题 →
InteropBridge::luaState
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
lua_State* luaState() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:217

反馈此接口问题 →
InteropBridge::nativeFunctionNames
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
std::vector<String> nativeFunctionNames() const;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:208

反馈此接口问题 →
InteropBridge::nowNs
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
static u64 nowNs();

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:220

反馈此接口问题 →
InteropBridge::operator=
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
InteropBridge& operator=(const InteropBridge&) = delete;

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:124

反馈此接口问题 →
InteropBridge::registerLuaAPI
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
void registerLuaAPI();

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:212

反馈此接口问题 →
InteropBridge::registerLuaFunction
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
u32 registerLuaFunction(const String& name);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:135

反馈此接口问题 →
InteropBridge::registerLuaRef
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
u32 registerLuaRef(const String& name, int luaRef);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:140

反馈此接口问题 →
InteropBridge::registerNative
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
u32 registerNative(const String& name, NativeFunction func);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:126

反馈此接口问题 →
InteropBridge::resetAllStats
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
void resetAllStats();

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:202

反馈此接口问题 →
InteropBridge::resetStats
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
void resetStats(const String& name);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:201

反馈此接口问题 →
InteropBridge::scheduleAsync
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
u32 scheduleAsync(const String& luaCode, f32 budgetMs = 4.0f);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:176

反馈此接口问题 →
InteropBridge::scheduleAsyncFunction
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
u32 scheduleAsyncFunction(f32 budgetMs = 4.0f);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:181

反馈此接口问题 →
InteropBridge::setProfilingEnabled
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
void setProfilingEnabled(bool enabled)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:194

反馈此接口问题 →
InteropBridge::tick
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
void tick(f64 nowMs, f32 budgetMs = 4.0f);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:188

反馈此接口问题 →
InteropBridge::unregisterLua
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
bool unregisterLua(const String& name);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:143

反馈此接口问题 →
InteropBridge::unregisterNative
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
bool unregisterNative(const String& name);

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:132

反馈此接口问题 →
InteropResult::fail
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
static InteropResult fail(InteropError e, String msg)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:99

反馈此接口问题 →
InteropResult::ok
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
bool ok() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:94

反馈此接口问题 →
InteropResult::success
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
static InteropResult success(ScriptValue v = ScriptValue::nil())

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:96

反馈此接口问题 →
InteropStats::avgNs
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
u64 avgNs() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:46

反馈此接口问题 →
InteropStats::p99Ns
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
u64 p99Ns() const

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:50

反馈此接口问题 →
InteropStats::record
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
void record(u64 ns)

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:35

反馈此接口问题 →
InteropStats::reset
待核对3.61.7C++

script 模块公开头声明。直接查看签名;对象生命周期、线程和平台条件须结合所属类型文档。

interop_bridge.h
void reset()

验证范围

已索引当前源码;未逐项完成运行、组合与平台验收。

include/kui/script/interop_bridge.h:60

反馈此接口问题 →
浏览同类接口 →