Parent

Methods

FFI::VariadicInvoker

Public Instance Methods

call(*args, &block) click to toggle source
    # File lib/ffi/variadic.rb, line 39
39:     def call(*args, &block)
40:       param_types = Array.new(@fixed)
41:       param_values = Array.new
42:       @fixed.each_with_index do |t, i|
43:         param_values << args[i]
44:       end
45:       i = @fixed.length
46:       while i < args.length
47:         param_types << FFI.find_type(args[i], @type_map)
48:         param_values << args[i + 1]
49:         i += 2
50:       end
51:       invoke(param_types, param_values, &block)
52:     end
init(arg_types, type_map) click to toggle source
    # File lib/ffi/variadic.rb, line 32
32:     def init(arg_types, type_map)
33:       @fixed = Array.new
34:       @type_map = type_map
35:       arg_types.each_with_index do |type, i|
36:         @fixed << type unless type == FFI::NativeType::VARARGS
37:       end
38:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.