Const
Lazy-loading namespace for CDLL libraries. Attribute access auto-loads on first use and caches the instance.
Python equivalent: ctypes.cdll
ctypes.cdll
import { cdll, c_char_p, c_uint32 } from 'node-ctypes';const strlen = cdll.msvcrt.func('strlen', c_uint32, [c_char_p]); Copy
import { cdll, c_char_p, c_uint32 } from 'node-ctypes';const strlen = cdll.msvcrt.func('strlen', c_uint32, [c_char_p]);
Lazy-loading namespace for CDLL libraries. Attribute access auto-loads on first use and caches the instance.
Python equivalent:
ctypes.cdll