ruby-dl2/doc/func.txt
ruby-dl2
dl/func.rb
dl/func.rb provides a high-level wrapper object to access a low-level function imported as a CFunc object.
dl.so, dl/import.rb, dl/struct.rb
func.txt
NAME
dl/func.rb
SYNOPSIS
require 'dl/func' handle = DL.dlopen("libc.so.6") cfunc = DL::CFunc.new(handle['atoi'], TYPE_INT, 'atoi') # wrap a CFunc object with expected parameter types. func = Function.new(cfunc, [TYPE_VOIDP]) i = func.call("100") p i # => 100
DESCRIPTION
dl/func.rb provides a high-level wrapper object to access a low-level function imported as a CFunc object.
BUGS
SEE ALSO
dl.so, dl/import.rb, dl/struct.rb
2006年09月20日(水) 17:32:27 Modified by aqualung