koffi 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/qemu/1.0.1/koffi_darwin_x64.tar.gz +0 -0
- package/build/qemu/1.0.1/koffi_freebsd_arm64.tar.gz +0 -0
- package/build/qemu/1.0.1/koffi_freebsd_ia32.tar.gz +0 -0
- package/build/qemu/1.0.1/koffi_freebsd_x64.tar.gz +0 -0
- package/build/qemu/1.0.1/koffi_linux_arm.tar.gz +0 -0
- package/build/qemu/1.0.1/koffi_linux_arm64.tar.gz +0 -0
- package/build/qemu/1.0.1/koffi_linux_ia32.tar.gz +0 -0
- package/build/qemu/1.0.1/koffi_linux_x64.tar.gz +0 -0
- package/build/qemu/1.0.1/koffi_win32_ia32.tar.gz +0 -0
- package/build/qemu/1.0.1/koffi_win32_x64.tar.gz +0 -0
- package/package.json +1 -1
- package/src/ffi.cc +1 -1
- package/build/qemu/1.0.0/koffi_darwin_x64.tar.gz +0 -0
- package/build/qemu/1.0.0/koffi_freebsd_arm64.tar.gz +0 -0
- package/build/qemu/1.0.0/koffi_freebsd_ia32.tar.gz +0 -0
- package/build/qemu/1.0.0/koffi_freebsd_x64.tar.gz +0 -0
- package/build/qemu/1.0.0/koffi_linux_arm.tar.gz +0 -0
- package/build/qemu/1.0.0/koffi_linux_arm64.tar.gz +0 -0
- package/build/qemu/1.0.0/koffi_linux_ia32.tar.gz +0 -0
- package/build/qemu/1.0.0/koffi_linux_x64.tar.gz +0 -0
- package/build/qemu/1.0.0/koffi_win32_ia32.tar.gz +0 -0
- package/build/qemu/1.0.0/koffi_win32_x64.tar.gz +0 -0
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ Once you have installed koffi with `npm install koffi`, you can start by loading
|
|
|
53
53
|
const koffi = require('koffi');
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
Below you can find
|
|
56
|
+
Below you can find three examples:
|
|
57
57
|
|
|
58
58
|
* The first one runs on Linux. The functions are declared with the C-like prototype language.
|
|
59
59
|
* The second one runs on Windows, and uses the node-ffi like syntax to declare functions.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/src/ffi.cc
CHANGED
|
@@ -319,7 +319,7 @@ static bool ParseClassicFunction(Napi::Env env, Napi::String name, Napi::Value r
|
|
|
319
319
|
}
|
|
320
320
|
#endif
|
|
321
321
|
|
|
322
|
-
func->name = DuplicateString(
|
|
322
|
+
func->name = DuplicateString(name.ToString().Utf8Value().c_str(), &instance->str_alloc).ptr;
|
|
323
323
|
|
|
324
324
|
func->ret.type = ResolveType(instance, ret);
|
|
325
325
|
if (!func->ret.type)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|