bridge library

Classes

VoltronApi
封装dart to c++的api调用,处理各种中间数据
VoltronBridgeManager
voltron外层业务逻辑对c++调用逻辑的bridge封装

Constants

useNewCommType → const bool

Functions

callNative(int engineId, Pointer<Utf16> moduleNamePtr, Pointer<Utf16> moduleFuncPtr, Pointer<Utf16> callIdPtr, Pointer<Void> paramsDataPtr, int paramsLen, int bridgeParamJsonInt) → void
getCurrentBridge(int engineId) VoltronBridgeManager?
reportJSException(int engineId, Pointer<Utf16> descriptionStream, Pointer<Utf16> stackStream) → void
reportJsonException(int engineId, Pointer<Utf8> jsonValue) → void

Typedefs

BindDomAndRenderDartType = void Function(int domId, int engineId, int renderId)
BindDomAndRenderNativeType = Void Function(Uint32 domId, Int32 engineId, Uint32 renderId)
Callback = void Function(dynamic param, Error? e)
CallFunctionFfiDartType = void Function(int engineId, Pointer<Utf16> action, Pointer<Uint8> params, int paramsLen, int callbackId)
CallFunctionFfiNativeType = Void Function(Int32 engineId, Pointer<Utf16> action, Pointer<Uint8> params, Int32 paramsLen, Int32 callbackId)
CallNativeEventFfiDartType = void Function(int engineId, int rootId, int nodeId, Pointer<Utf16> event, Pointer<Uint8> params, int paramsLen)
CallNativeEventFfiNativeType = Void Function(Int32 engineId, Int32 rootId, Int32 nodeId, Pointer<Utf16> event, Pointer<Uint8> params, Int32 paramsLen)
CallNativeFfi = Void Function(Int32 engineId, Pointer<Utf16> moduleName, Pointer<Utf16> moduleFunc, Pointer<Utf16> callId, Pointer<Void> paramsData, Uint32 paramsLen, Int32 bridgeParamJson)
CallNativeFunctionFfiDartType = void Function(int engineId, int rootId, Pointer<Utf16> callId, Pointer<Uint8> params, int paramsLen, int keep)
CallNativeFunctionFfiNativeType = Void Function(Int32 engineId, Int32 rootId, Pointer<Utf16> callId, Pointer<Uint8> params, Int32 paramsLen, Int32 keep)
ConnectRootViewAndRuntimeDartType = void Function(int engindId, int rootId)
ConnectRootViewAndRuntimeNativeType = Void Function(Int32 engindId, Uint32 rootId)
CreateDevtoolsDartType = int Function(Pointer<Utf16> dataDir, Pointer<Utf16> wsUrl)
CreateDevtoolsFfiNativeType = Uint32 Function(Pointer<Utf16> dataDir, Pointer<Utf16> wsUrl)
DestroyDevtoolsDartType = void Function(int devtoolsId, int isReload)
DestroyDevtoolsFfiNativeType = Void Function(Uint32 devtoolsId, Int32 isReload)
DestroyFfiDartType = void Function(int engineId, int callbackId, int isReload)
DestroyFfiNativeType = Void Function(Int32 engineId, Int32 callbackId, Int32 isReload)
GetCrashMessageFfiType = Pointer<Utf8> Function()
GetVoltronEngineIndexFfiDartType = int Function()
GetVoltronEngineIndexFfiNativeType = Uint32 Function()
InitBridgeFfiDartType = void Function()
InitBridgeFfiNativeType = Void Function()
InitJsFrameworkFfiDartType = int Function(Pointer<Utf16> globalConfig, int singleThreadMode, int bridgeParamJson, int isDevModule, int groupId, int vfsId, int ffiId, int domManagerId, int engineId, int callbackId, int devtoolsId)
InitJsFrameworkFfiNativeType = Int64 Function(Pointer<Utf16> globalConfig, Int32 singleThreadMode, Int32 bridgeParamJson, Int32 isDevModule, Int64 groupId, Uint32 vfsId, Uint32 ffiId, Uint32 domManagerId, Int32 engineId, Int32 callbackId, Uint32 devtoolsId)
LoadInstanceFfiDartType = int Function(int engineId, Pointer<Uint8> params, int paramsLength)
LoadInstanceFfiNativeType = Int64 Function(Int32 engineId, Pointer<Uint8> params, Int32 paramsLength)
NotifyNetworkEventFfiDartType = void Function(int engineId, Pointer<Utf16> requestId, int eventType, Pointer<Utf16> response, Pointer<Utf16> extra)
NotifyNetworkEventFfiNativeType = Void Function(Int32 engineId, Pointer<Utf16> requestId, Int32 eventType, Pointer<Utf16> response, Pointer<Utf16> extra)
OnNetworkRequestInvokeDartType = void Function(int engineId, Pointer<Utf16> requestId, Pointer<Uint8> reqMeta, int length)
OnNetworkRequestInvokeNativeType = Void Function(Int32 engineId, Pointer<Utf16> requestId, Pointer<Uint8> reqMeta, Int32 length)
OnNetworkResponseInvokeDartType = void Function(int engineId, Pointer<Utf16> requestId, Pointer<Uint8> rsqMeta, int length)
OnNetworkResponseInvokeNativeType = Void Function(Int32 engineId, Pointer<Utf16> requestId, Pointer<Uint8> reqMeta, Int32 length)
ReportJsException = Void Function(Int32 engineId, Pointer<Utf16> descriptionStream, Pointer<Utf16> stackStream)
ReportJsonException = Void Function(Int32 engineId, Pointer<Utf8> jsonValue)
RunScriptFromUriFfiDartType = int Function(int engineId, int vfsId, Pointer<Utf16> uri, Pointer<Utf16> codeCacheDir, int canUseCodeCache, int isLocalFile, int callbackId)
RunScriptFromUriFfiNativeType = Int32 Function(Int32 engineId, Uint32 vfsId, Pointer<Utf16> uri, Pointer<Utf16> codeCacheDir, Int32 canUseCodeCache, Int32 isLocalFile, Int32 callbackId)
UnloadInstanceFfiDartType = int Function(int engineId, Pointer<Uint8> params, int paramsLength)
UnloadInstanceFfiNativeType = Int64 Function(Int32 engineId, Pointer<Uint8> params, Int32 paramsLength)