Node.js module
node:ffi
Functions 31
- ffi.dlclose()
Closes a dynamic library.
- ffi.dlopen()
Loads a dynamic library and resolves the requested function definitions.
- ffi.dlsym()
Resolves a symbol address from a loaded library.
- ffi.exportArrayBuffer()
Copies bytes from an
ArrayBufferinto native memory. - ffi.exportArrayBufferView()
Copies bytes from an
ArrayBufferViewinto native memory. - ffi.exportBuffer()
Copies bytes from a
Bufferinto native memory. - ffi.exportString()
Copies a JavaScript string into native memory and appends a trailing NUL terminator.
- ffi.getFloat32()
- ffi.getFloat64()
- ffi.getInt16()
- ffi.getInt32()
- ffi.getInt64()
- ffi.getInt8()
- ffi.getRawPointer()
Returns the raw memory address of JavaScript-managed byte storage.
- ffi.getUint16()
- ffi.getUint32()
- ffi.getUint64()
- ffi.getUint8()
- ffi.setFloat32()
- ffi.setFloat64()
- ffi.setInt16()
- ffi.setInt32()
- ffi.setInt64()
- ffi.setInt8()
- ffi.setUint16()
- ffi.setUint32()
- ffi.setUint64()
- ffi.setUint8()
- ffi.toArrayBuffer()
Creates an
ArrayBufferfrom native memory. - ffi.toBuffer()
Creates a
Bufferfrom native memory. - ffi.toString()
Reads a NUL-terminated UTF-8 string from native memory.
Classes 1
Interfaces 7
Types 8
Variables 1
- const ffi.suffix
The native shared library suffix for the current platform.