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
/
Fiddle
/
Importer
/
//opt/alt/ruby21/share/ri/2.1.0/system/Fiddle/Importer/cdesc-Importer.ri
U:RDoc::NormalModule[iI" Importer:EFI"Fiddle::Importer;T0o:RDoc::Markup::Document:@parts[o;;[ o:RDoc::Markup::Paragraph;[I"KA DSL that provides 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 'fiddle' ;TI"require 'fiddle/import' ;TI" ;TI"module LibSum ;TI" extend Fiddle::Importer ;TI" dlload './libsum.so' ;TI") extern 'double sum(double*, int)' ;TI"% extern 'double split(double)' ;TI"end;T:@format0: @fileI"$ext/fiddle/lib/fiddle/import.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[ [ [[I"Fiddle;To;;[ ;@ ;0I"$ext/fiddle/lib/fiddle/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_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"Fiddle;TcRDoc::NormalModule