Deno.dlopen to load the Zinc shared library. Like the Bun adapter, no native addon is needed. The FFI bindings are defined at runtime in TypeScript.
Installation
--allow-ffi and --allow-read permissions.
SharedRegion
create
open
buffer
Returns aUint8Array backed by the shared memory mapping. Uses Deno.UnsafePointerView.getArrayBuffer for zero-copy access.
notify
wait
true on notification, false on timeout.
close
Symbol.dispose for using declarations:
Complete example
Permissions
The adapter requires these Deno permissions:--allow-ffito callDeno.dlopen--allow-readto locate the shared library
FFI details
The library path is resolved relative to the adapter’s Deno module location. The suffix is determined fromDeno.build.os: .dylib on macOS, .so on Linux. windows is not mapped — Zinc does not support Windows. Pointer values are represented as Deno.PointerValue (which is number | null on 32-bit and bigint | null on 64-bit).