跳转到正文

tooldelta_native API ​

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

模块说明 ​

text
Explicit trusted Linux C ABI binding; never starts an original launcher.

The host owns the immutable library path and SHA256 setting. This is not a
native-code sandbox or a bound on native allocations. The process owns the
loaded library until exit; never dlclose while original plugins retain pointers.

MAX_LIBRARY_BYTES ​

python
MAX_LIBRARY_BYTES = 128 << 20

load_verified_library ​

python
def load_verified_library(path, digest)

SDK 说明:

text
Verify the trusted private file before dlopen.

A trusted private path must remain immutable during verification and loading.
Lstat checks are not protection against same-user concurrent replacement.

load_nbt_library ​

python
def load_nbt_library(path, digest)

SDK 说明:

text
Bind the original NBT conversion/free signatures after verification.

bind_from_env ​

python
def bind_from_env(environ)

SDK 说明:

text
Activation-only opt-in. Empty pair disables without importing ToolDelta.

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