Sha256: 02c5dd9125a2fcc8264f226a32d80b70340567d9dfa2a0cfb1a9ddd1602888c5

Contents?: true

Size: 197 Bytes

Versions: 7123

Compression:

Stored size: 197 Bytes

Contents

require 'ffi'

module Foo
  extend FFI::Library
  ffi_lib FFI::Library::LIBC
  attach_function("cputs", "puts", [ :string ], :int)
end
Foo.cputs("Hello, World via libc puts using FFI on MRI ruby")

Version data entries

7,123 entries across 7,117 versions & 41 rubygems

Version Path
ory-client-0.0.1.alpha36 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/ffi-1.15.4/samples/hello.rb
ory-kratos-client-0.8.2.alpha1 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-client-0.0.1.alpha31 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-client-0.0.1.alpha30 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-client-0.0.1.alpha29 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-client-0.0.1.alpha28 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-client-0.0.1.alpha27 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-client-0.0.1.alpha24 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/ffi-1.15.4/samples/hello.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/ffi-1.15.4/samples/hello.rb
ory-client-0.0.1.alpha23 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/ffi-1.15.4/samples/hello.rb
ory-kratos-client-0.8.0.alpha2 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-client-0.0.1.alpha21 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-keto-client-0.7.0.alpha1 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-keto-client-0.7.0.alpha0 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-kratos-client-0.7.6.alpha7 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-kratos-client-0.7.6.alpha6 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb
ory-kratos-client-0.7.6.alpha5 vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/samples/hello.rb