Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
DL
/
Importer
/
//opt/alt/ruby21/share/ri/2.1.0/system/DL/Importer/cdesc-Importer.ri
U:RDoc::NormalModule[iI" Importer:EFI"DL::Importer;T0o:RDoc::Markup::Document:@parts[o;;[ o:RDoc::Markup::Paragraph;[I"MDL::Importer includes the means to dynamically load libraries and build ;TI"Imodules around them including calling extern functions within the C ;TI""library that has been loaded.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"Example;T@o:RDoc::Markup::Verbatim;[I"require 'dl' ;TI"require 'dl/import' ;TI" ;TI"module LibSum ;TI" extend DL::Importer ;TI" dlload './libsum.so' ;TI") extern 'double sum(double*, int)' ;TI"% extern 'double split(double)' ;TI"end;T:@format0: @fileI"ext/dl/lib/dl/import.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[ [ [[I"DL;To;;[ ;@ ;0I"ext/dl/lib/dl/import.rb;T[I"CParser;To;;[ ;@ ;0@([[I" class;T[[:public[ [:protected[ [:private[ [I" instance;T[[;[[I"[];F@([I" bind;F@([I"bind_function;F@([I"create_carried_function;F@([I"create_temp_function;F@([I"create_value;F@([I"dlload;F@([I"extern;F@([I"handler;F@([I"import_function;F@([I"import_symbol;F@([I"import_value;F@([I"sizeof;F@([I"struct;F@([I"typealias;F@([I" union;F@([I" value;F@([;[ [;[[I"parse_bind_options;F@([[I" Importer;To;;[ ;@ ;0@([U:RDoc::Context::Section[i 0o;;[ ;0;0[@ I"DL;TcRDoc::NormalModule