Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > dlライブラリ > DL::Symbolクラス

class DL::Symbol

クラスの継承リスト: DL::Symbol < Object < Kernel

要約

ダイナミックライブラリの関数を表すクラスです。

特異メソッド

定義 説明
char2type(char) -> String | nil

型に相当する文字 char を取り、C 言語の型修飾を返します。 char が型指定子でない場合は、nil を返します。

new(addr, type = nil, name = nil) -> DL::Symbol

ダイナミックライブラリの関数のアドレス addr から DL::Symbol を生成して返します。

インスタンスメソッド

定義 説明
call(*args) -> object
self[*args] -> object

自身が表しているライブラリ関数を呼び出します。関数の 戻り値 result と、 call に渡された引数の配列 args = [arg1, arg2, ... argN] からなる配列 [result, args] を返します。

cproto -> String
to_s -> String

C 言語形式のプロトタイプを文字列で返します。

inspect -> String

人間が読みやすい形式の文字列を返します。

name -> String

関数名を文字列で返します。

proto -> String

関数のプロトタイプを DL モジュールの型指定文字列で返します。

to_i -> Integer

ダイナミックライブラリの関数のアドレスを返します。

to_ptr -> DL::PtrData

ダイナミックライブラリの関数へのポインタ DL::PtrData を返します。

継承したメソッド

== === =~ __id__ __send__ _dump class clone dclone display enum_for eql? equal? extend freeze frozen? hash initialize initialize_copy instance_eval instance_exec instance_of? instance_variable_defined? instance_variable_get instance_variable_set instance_variables is_a? marshal_dump marshal_load method method_missing methods nil? pretty_inspect pretty_print pretty_print_cycle pretty_print_inspect pretty_print_instance_variables private_methods protected_methods public_methods remove_instance_variable respond_to? singleton_method_added singleton_method_removed singleton_method_undefined singleton_methods taint tainted? tap to_a to_ary to_hash to_int to_io to_proc to_regexp to_str to_yaml to_yaml_properties to_yaml_style untaint