るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.017秒)
トップページ > クエリ:reason[x] > クエリ:fiddle[x]

別のキーワード

  1. drb reason
  2. parseerror reason
  3. optparse reason
  4. _builtin reason
  5. optparse reason=

検索結果

fiddle (38144.0)

*.dllや*.soなど、ダイナミックリンクライブラリを扱うためのライブラリです。

...使い方

通常は fiddle/import ライブラリを require して
Fiddle
::Importer モジュールを使用します。
dl と基本的な使いかたは良く似ています。
Fiddle
モジュール自体はプリミティブな機能しか提供していません。
Fiddle
::Importer モジュ...
...ールは以下のようにユーザが定義した
モジュールを拡張する形で使います。

require "fiddle/import"
module M
extend Fiddle::Importer
end

以後、このモジュールで dlload や extern などのメソッドが使用できるようになります。
以下...
...ッパーメソッドを定義します。

require "fiddle/import"
module M
extend Fiddle::Importer
dlload "libc.so.6","libm.so.6"
extern "int strlen(char*)"
end
# Note that we should not include the module M from some reason.

p M.strlen('abc') #=> 3

M.strlen を使用す...
...りに使います。

=== 使い方

通常は fiddle/import ライブラリを require して
Fiddle
::Importer モジュールを使用します。
Fiddle
モジュール自体はプリミティブな機能しか提供していません。
Fiddle
::Importer モジュールは以下のようにユ...
...ーザが定義した
モジュールを拡張する形で使います。

require "fiddle/import"
module M
extend Fiddle::Importer
end

以後、このモジュールで dlload や extern などのメソッドが使用できるようになります。
以下のように dlload を使っ...