跳转到正文

tooldelta_item_bridge API ​

完整接口目录 · 多语言与兼容桥接用法 · 工具包下载

模块说明 ​

text
Real C ABI binding for the fixed, managed ToolDelta item-maker path.

Original plugin code keeps its LIB call. The domain restores checked ctypes
declarations after original load_lib, then copies and frees each C result once.
The C shim has no connection, scheduler, asynchronous native work or replay.

NativeItemBridge ​

python
class NativeItemBridge

NativeItemBridge.__init__ ​

python
def __init__(self, path, digest, original_library, rename)

NativeItemBridge.finalize_declarations ​

python
def finalize_declarations(self)

SDK 说明:

text
Run after original plugin init replaces argtypes/restype.

These remain real ctypes function pointers. Checked from_param accepts
the original c_longlong objects but rejects truncation before C entry.

NativeItemBridge.close ​

python
def close(self)

NativeItemBridge.library ​

python
self.library

公开实例属性,在 __init__、finalize_declarations 中设置。

NativeItemBridge.original_library ​

python
self.original_library

公开实例属性,在 __init__ 中设置。

NativeItemBridge.closed ​

python
self.closed

公开实例属性,在 __init__、close 中设置。

ItemBridgeRecoveryRequired ​

python
class ItemBridgeRecoveryRequired(RuntimeError)

另继承外部类型 RuntimeError;其通用方法不在本 SDK 目录中重复展开。

ManagedItemCalls ​

python
class ManagedItemCalls

SDK 说明:

text
Original synchronous calls over one Host, with durable no-replay intents.

Construction belongs to the IPC loop; calls belong to original plugin
threads. An incomplete write remains fenced across process restarts. An
operator reconciles the retained exact intent; this class never clears it.

ManagedItemCalls.__init__ ​

python
def __init__(self, peer, session, data, output_factory)

ManagedItemCalls.command ​

python
def command(self, cmd, identity, wait, timeout)

ManagedItemCalls.rename ​

python
def rename(self, position, runtime_id, slot, name)

ManagedItemCalls.close ​

python
def close(self)

ManagedItemCalls.loop ​

python
self.loop

公开实例属性,在 __init__ 中设置。

ManagedItemCalls.operations ​

python
self.operations

公开实例属性,在 __init__ 中设置。

ManagedItemCalls.output_factory ​

python
self.output_factory

公开实例属性,在 __init__ 中设置。

ManagedItemCalls.directory ​

python
self.directory

公开实例属性,在 __init__ 中设置。

ManagedItemCalls.lock ​

python
self.lock

公开实例属性,在 __init__ 中设置。

ManagedItemCalls.workflow_owner ​

python
self.workflow_owner

公开实例属性,在 __init__、_sync 中设置。

ManagedItemCalls.closed ​

python
self.closed

公开实例属性,在 __init__、close 中设置。

ManagedItemCalls.fenced ​

python
self.fenced

公开实例属性,在 __init__、_fence 中设置。

bind_item_from_env ​

python
def bind_item_from_env(environ, original_library, calls)

Neomega · 使用、开发与参考文档