Type:
Module

A DSL that provides the means to dynamically load libraries and build modules around them including calling extern functions within the C library that has been loaded.

Example

require 'fiddle'
require 'fiddle/import'

module LibSum
  extend Fiddle::Importer
  dlload './libsum.so'
  extern 'double sum(double*, int)'
  extern 'double split(double)'
end
extern

extern(signature, *opts) Instance Public methods Creates a global method from

2015-04-06 01:28:20
bind_function

bind_function(name, ctype, argtype, call_type = nil, &block) Instance Public methods

2015-04-06 01:12:25
import_symbol

import_symbol(name) Instance Public methods Returns a new

2015-04-06 01:39:26
handler

handler() Instance Public methods The

2015-04-06 01:33:22
create_value

create_value(ty, val=nil) Instance Public methods Creates a class to wrap the

2015-04-06 01:17:41