るりまサーチ

最速Rubyリファレンスマニュアル検索!
10件ヒット [1-10件を表示] (0.029秒)
トップページ > クエリ:ruby[x] > 種類:インスタンスメソッド[x] > クエリ:struct[x] > クエリ:to_binary[x] > クラス:RubyVM::InstructionSequence[x]

別のキーワード

  1. struct new
  2. mkmf have_struct_member
  3. struct members
  4. struct each
  5. struct each_pair

ライブラリ

検索結果

RubyVM::InstructionSequence#to_binary(extra_data = nil) -> String (24127.0)

バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。

...列として返します。
RubyVM::InstructionSequence
.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。

引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence
.load_from_binary_extra_data...
...ありません。 to_binary で得たバイナリデータは他のマシンに移動できません。他のバージョンや他のアーキテクチャのRubyで作られたバイナリデータは使用できません。

//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1...
...0\x00numE\x7F\x00\x00\x02\x00\x00\x00\x00
# \x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00+\xA0\x01\x00\x00\xAC\x01\x00
# \x00\xCA\x01\x00\x00\xD6\x01\x00\x00\xED\x01\x00\x00extra_data"
//}

@see RubyVM::InstructionSequence.load_from_binary
@see RubyVM::InstructionSequence.load_from_binary_extra_data...