Top "Ffi" questions

A foreign function interface (FFI) is a mechanism for one language to interact with software written in another language.

ERROR: Error installing ffi: ERROR: Failed to build gem native extension

Got the DevKit installed and re-ran the ffi install….got this as an output: C:\Documents and Settings\******>gem …

ruby gem ffi
How do I convert a C string into a Rust string and back via FFI?

I'm trying to get a C string returned by a C library and convert it to a Rust string via …

c ffi rust
Passing Numpy arrays to a C function for input and output

Oh my word I'm a fool. I was simply omitting the second and third arguments when calling the function. Like …

python numpy ctypes ffi
Bundle update fails on ffi

I'm attempting to do a bundle update on my rails application but I get the following error: Installing ffi (1.0.11) with …

ruby-on-rails ruby-on-rails-3 bundler ffi
Python: SWIG vs ctypes

In python, under what circumstances is SWIG a better choice than ctypes for calling entry points in shared libraries? Let's …

python c++ swig ctypes ffi
Why EnumPrintersA and EnumPrintersW request the same amount of memory?

I call EnumPrintersA/EnumPrintersW functions using node-ffi to get list of local printers accessible from my PC. You should create …

javascript c++ node.js ffi node-ffi
How to dereference a memory location from python ctypes?

I want to replicate the following c code in python ctypes: main() { long *ptr = (long *)0x7fff96000000; printf("%lx",*ptr); } …

python ctypes ffi
Working with c_void in an FFI

I am struggling with passing a struct through an FFI that accepts void and reading it back on the other …

ffi rust
How to call C++ code from Node.js?

I'm currently developing a simulator that runs on a server and should display data in the browser. For serving files, …

c++ node.js performance v8 ffi
Calling Haskell from C++ code

I'm currently writing an app in C++ and found that some of its functionality would be better written in Haskell. …

c++ haskell linker ffi