Sha256: 09dfa5741a8adc224632bcc2ce50d0f4160ebaaa586dff1cc51ec245041d09ea

Contents?: true

Size: 231 Bytes

Versions: 3073

Compression:

Stored size: 231 Bytes

Contents

require 'ffi'

module Foo
  extend FFI::Library
  ffi_lib FFI::Library::LIBC
  attach_function("cputs", "puts", [ :string ], :int)
  freeze
end
Ractor.new do
  Foo.cputs("Hello, World via libc puts using FFI in a Ractor")
end.take

Version data entries

3,073 entries across 3,071 versions & 24 rubygems

Version Path
cybrid_api_organization_ruby-0.123.220 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_organization_ruby-0.123.219 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_id_ruby-0.123.219 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_bank_ruby-0.123.219 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_bank_ruby-0.123.217 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_id_ruby-0.123.217 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_organization_ruby-0.123.217 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_organization_ruby-0.123.216 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_bank_ruby-0.123.216 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_id_ruby-0.123.216 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_organization_ruby-0.123.215 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_bank_ruby-0.123.215 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_id_ruby-0.123.215 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
ory-client-1.16.6 vendor/bundle/ruby/3.1.0/gems/ffi-1.17.1/samples/hello_ractor.rb
cybrid_api_bank_ruby-0.123.214 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_organization_ruby-0.123.214 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_id_ruby-0.123.214 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_bank_ruby-0.123.213 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_id_ruby-0.123.213 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb
cybrid_api_organization_ruby-0.123.213 vendor/bundle/ruby/3.3.0/gems/ffi-1.17.1-x86_64-linux-gnu/samples/hello_ractor.rb