lightgun-poc / lib/native / loadKoffi
Function: loadKoffi()
loadKoffi(
version?):Promise<Ffi>
Defined in: lib/native.ts:174
Loads the koffi FFI addon, memoized, the same two ways as libnut: require("koffi") in a checkout, extract + dlopen inside the single executable. The raw .node exposes the very load/func surface the npm wrapper re-exports, so both paths hand back the same API.
Parameters
version?
string = "0"
Returns
Promise<Ffi>