115件ヒット
[1-100件を表示]
(0.080秒)
ライブラリ
- ビルトイン (7)
-
fiddle
/ import (12) -
rubygems
/ installer (36) -
rubygems
/ specification (36) - socket (24)
クラス
- Binding (7)
-
Gem
:: Installer (36) -
Gem
:: Specification (36) -
Socket
:: AncillaryData (12) - UDPSocket (12)
モジュール
-
Fiddle
:: Importer (12)
キーワード
-
add
_ bindir (12) - bindir (12)
- bindir= (12)
-
generate
_ bin _ script (12) -
generate
_ bin _ symlink (12) -
generate
_ windows _ script (12) -
recvfrom
_ nonblock (12) -
source
_ location (7)
検索結果
先頭5件
-
Fiddle
:: Importer # bind(signature , *opts) { . . . } -> Fiddle :: Function (18208.0) -
Ruby のブロックを C の関数で wrap し、その関数をモジュールに インポートします。
...して定義されます。
また、Fiddle::Importer#[] で Fiddle::Function オブジェクトとして
取り出すことができます。
signature で関数の名前とシネグチャを指定します。例えば
"int compare(void*, void*)" のように指定します。
opts には :stdca......@param signature 関数の名前とシネグチャ
@param opts オプション
例
require 'fiddle/import'
module M
extend Fiddle::Importer
dlload "libc.so.6"
typealias "size_t", "unsigned long"
extern "int qsort(void*, size_t, size_t, void*)"
bind("int compare(voi......x.to_s(Fiddle::SIZEOF_INT).unpack("i!")
y = py.to_s(Fiddle::SIZEOF_INT).unpack("i!")
x <=> y
}
end
data = [32, 180001, -13, -1, 0, 49].pack("i!*")
M.qsort(Fiddle::Pointer[data], 6, Fiddle::SIZEOF_INT, M["compare"])
p data.unpack("i!*") # => [-13, -1, 0, 32, 49, 180001]... -
Binding
# source _ location -> [String , Integer] (9101.0) -
self の Ruby のソースファイル名と行番号を返します。
...self の Ruby のソースファイル名と行番号を返します。
d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。
//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//}... -
Gem
:: Specification # add _ bindir(executables) -> Array | nil (9101.0) -
実行コマンドの格納場所を返します。
実行コマンドの格納場所を返します。
@param executables 実行コマンド名を格納した配列を指定します。 -
Gem
:: Specification # bindir -> String (9101.0) -
実行ファイルを格納するディレクトリを返します。
実行ファイルを格納するディレクトリを返します。 -
Gem
:: Specification # bindir=(dir) (9101.0) -
実行ファイルを格納するディレクトリをセットします。
実行ファイルを格納するディレクトリをセットします。
@param dir 実行ファイルを格納するディレクトリを指定します。デフォルトは "bin" です。 -
Gem
:: Installer # generate _ bin _ script(filename , bindir) (6201.0) -
Gem に入っているアプリケーションを実行するためのスクリプトを作成します。
...Gem に入っているアプリケーションを実行するためのスクリプトを作成します。
@param filename ファイル名を指定します。
@param bindir 実行ファイルを配置するディレクトリを指定します。... -
Gem
:: Installer # generate _ bin _ symlink(filename , bindir) (6201.0) -
Gem に入っているアプリケーションを実行するためのシンボリックリンクを作成します。
...現在インストールされている Gem よりも新しい Gem をインストールするときは、
シンボリックリンクを更新します。
@param filename ファイル名を指定します。
@param bindir 実行ファイルを配置するディレクトリを指定します。... -
Gem
:: Installer # generate _ windows _ script(filename , bindir) (6201.0) -
コマンドの実行を容易にするために Windows 向けのバッチファイルを作成します。
...コマンドの実行を容易にするために Windows 向けのバッチファイルを作成します。
@param bindir 実行ファイルを配置するディレクトリを指定します。
@param filename ファイル名を指定します。... -
Socket
:: AncillaryData # timestamp -> Time (3013.0) -
タイムスタンプ制御メッセージに含まれる時刻を Time オブジェクト で返します。
...'socket'
Addrinfo.udp("127.0.0.1", 0).bind {|s1|
Addrinfo.udp("127.0.0.1", 0).bind {|s2|
s1.setsockopt(:SOCKET, :TIMESTAMP, true)
s2.send "a", 0, s1.local_address
ctl = s1.recvmsg.last
p ctl
#=> #<Socket::AncillaryData: INET SOCKET TIMESTAMP 2009-02-24 17:35...