ffi专题提供ffi的最新资讯内容,帮你更好的了解ffi。
我有一个 C++ 头文件,声明如下: <pre><code>struct Inner { // ... }; struct MyStruct { Inner* _inner; size_
我是一个需要区别对待 cdata 和 ctypes 的库的作者。目前,我使用 <code>ffi.typeof(value) == value</code>,但这会
似乎返回结构体的 C 函数有时使用 <a href="https://lists.llvm.org/pipermail/llvm-dev/2016-March/097690.html" rel="nofollow no
下面,我有两个字符串指针参数的简单函数。第一个参数是表达式(即 value = "foo"),第二个参数是 json
我试图从 Rust 函数返回一个结构体到 Node.js,该结构体是嵌套的,并且包含一个数组,所以它足够复杂,
我正在编写一个 C 库,我希望它可以在 C 和 C++ 中使用。在某一时刻,它应该从用户那里接收一个带有 0-
我需要定义一个 Rust 类型来反映一个不透明的 C 结构体,其大小和对齐要求在编译时是已知的。一个乐
我可以创建函数来从 PID 获取路径,但现在我必须获取进程 PID。 <pre><code>String _getProcessPath(int processID)
我正在尝试针对 i686-pc-windows-msvc,但此代码 <pre class="lang-rust prettyprint-override"><code>extern &#34;C&#34; {
我已经在 ffi github 上打开了一个 <a href="https://github.com/ffi/ffi/issues/898" rel="nofollow noreferrer">issue</a>,但我
我需要一些帮助来将 luajit 指针转换为字符串并返回。 首先我定义 ctype: <pre><code>ffi.cdef[[ typ
我正在尝试使用 <a href="https://ruby-doc.org/stdlib-2.7.1/libdoc/fiddle/rdoc/Fiddle/Importer.html" rel="nofollow noreferrer">Ruby
我想知道 Flutter 是否支持通过 ffi for Desktop 应用程序嵌入 C/C++?我知道你可以在 iOS 和 Android 上实现。
我正在尝试在 CocoaPods 中安装我的 pod:<code>pod install</code> 但是输出总是报错: <pre><code>LoadError -
我可以通过 FFI 将 C 函数公开给 Rust 代码,如下所示: <pre><code>use std::os::raw::c_int; mod c { #[link(name=
红宝石 2.6.6 我认为当任何 gem 依赖于 <code>ffi</code> gem(在本例中为 taxjar)时,我会收到以下错误。
我正在将一个对象的一些信息编译成一个 <code>.so</code>,例如: <pre><code>#[no_mangle] pub static a: [f32; 10] =
我目前正在使用 Flutter 的 ffi 包。 Flutter 和 C 语言一起使用。 我正在使用代码 [https://github.com/xiph/rnnoise]
我想从 Rust 调用以下 C 函数: <pre class="lang-c prettyprint-override"><code>char const *strmin_c(char const *str1, char co
如何使用 Dart ffi 调用带有输出参数的本机函数,因为 dart 不支持输出参数。我正在寻找类似 C# 代码的替