Registry / utility / nice-ffi

nice-ffi

JSON →
library0.4rbrubygemsunverified

Nice-FFI is a layer on top of Ruby-FFI with features to ease development of FFI-based libraries.

gem install nice-ffi
INSTALL
IMPORT
SIG · NICE-FFI
N
nice-ffi
utilityrubyv0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NiceFFI
require 'nice-ffi'

Define and call a C function using NiceFFI

require 'nice-ffi' module MyLib extend NiceFFI::Library ffi_lib 'c' attach_function :puts, [:string], :int end MyLib.puts('Hello from FFI!')
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
nice-ffi — gem install nice-ffi · libregistry