sbffi
sbffi copied to clipboard
FFI for node.js, written using NAPI, dyncall, and shared buffers.
hey, I really like this project. but it would really be beneficial to many node.js developers if this project was written in TypeScript, or at least would come with typescript...
`yarn test` passes. Review is recommended with hidden whitespace changes.
Hi I am trying to get socketOptions for my unix socket, but I cannot seem to pinpoint the correct pointers to use. I keep getting the following error: `Cannot mix...
I have two doubts: 1 - I'm trying to run a 32 bit dll in a 64 bit node instalation, it's possible? 2 - I'm receiving the message "Library not...
It would be great if you could add an example for making an asynchronous callback from c to js
How else would you pass a struct like so? ``` libusb_context *ctx = NULL; assert(libusb_init(&ctx) == LIBUSB_SUCCESS); ``` ``` const libusb_init = getNativeFunction(path, 'libusb_init', 'int', [`void*`]) ```
const FindWindowW = getNativeFunction('user32.dll', 'FindWindowW', 'int32_t', [ 'string', 'string' ]);
In getReaders the unsigned int readers are used: `int16_t: offset => dv.getUint16(offset, true),` `int32_t: offset => dv.getUint32(offset, true),` This prevents detection of return values of -1 as errors. Must be...
``` D:\temp\node_test>npm install sbffi npm ERR! code 1 npm ERR! path D:\temp\node_test\node_modules\sbffi npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install -t 5 -r napi || npm...