Method: RubyVM::InstructionSequence#to_binary
- Defined in:
- iseq.c
#to_binary(extra_data = nil) ⇒ Object
Returns serialized iseq binary format data as a String object. A corresponding iseq object is created by RubyVM::InstructionSequence.load_from_binary() method.
String extra_data will be saved with binary data. You can access this data with RubyVM::InstructionSequence.load_from_binary_extra_data(binary).
Note that the translated binary data is not portable. You can not move this binary data to another machine. You can not use the binary data which is created by another version/another architecture of Ruby.
2353 2354 2355 2356 2357 2358 2359 |
# File 'iseq.c', line 2353 static VALUE iseqw_to_binary(int argc, VALUE *argv, VALUE self) { VALUE opt; rb_scan_args(argc, argv, "01", &opt); return iseq_ibf_dump(iseqw_check(self), opt); } |