class Bindgen::Call::FunctionPointerResult

Overview

A result specifying a C function pointer in a lib, like a Proc member of a lib struct.

Defined in:

bindgen/call.cr

Constructors

Instance Method Summary

Instance methods inherited from class Bindgen::Call::Result

apply_conversion(code : String) : String apply_conversion, conversion : Template::Base conversion, copy_with(type : Parser::Type = @type, type_name : String = @type_name, reference : Bool = @reference, pointer : Int32 = @pointer, conversion : Template::Base = @conversion, nilable : Bool = @nilable) : Result copy_with, to_argument(name : String, default = nil) : Argument to_argument

Constructor methods inherited from class Bindgen::Call::Result

new(type, type_name, reference, pointer, conversion : Bindgen::Template::Base = Template::None.new, nilable = false) new

Instance methods inherited from class Bindgen::Call::Expression

==(other : self) ==, hash(hasher) hash, nilable? : Bool nilable?, pointer : Int32 pointer, reference : Bool reference, type : Parser::Type type, type_name : String type_name

Constructor methods inherited from class Bindgen::Call::Expression

new(type : Bindgen::Parser::Type, reference : Bool, pointer : Int32, type_name : String, nilable : Bool) new

Constructor Detail

def self.new(type, type_name, reference, pointer, conversion = Template::None.new, nilable = false, signature : Array(Bindgen::Call::Result) = [] of Result) #

Keeps the arguments of Result#initialize, as Result+.class may create an instance.


[View source]

Instance Method Detail

def signature : Array(Result) #

The results of the argument types, followed by the return type. This is the order of the type arguments of the Proc.


[View source]