class

WinMD::Function

Inherits WinMD::Architecture < WinMD::Base < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Constructors

Class methods

value_type(type : String) : String

Foo* is only valid where a type is expected; as a call argument it has to be written Pointer(Foo).

Source

Instance methods

after_initialize
Source
apply_overrides(overrides : Array(WinMD::FunOverride))
Source
apply_overrides
Source
architectures
Source
architectures=(architectures : Array(String))
Source
dll_import
Source
dll_import=(dll_import : String)
Source
file=(file : WinMD::File)
Source
fun_alias
Source
libc_call

Body of a wrapper that forwards to Crystal's LibC. Each argument is converted to the type LibC declares and the result back to this wrapper's declared type, through the generated LibCBridge helpers.

Source
libc_fun
Source
libc_signature

LibC's declaration of this function when discovery found one; nil for names that only come from fun_exceptions.json or --libc-funs.

Source
libc_wrapper?

True when the wrapper can forward to the stdlib's declaration instead of being commented out: LibC's parameter list is known and has the same arity as the metadata's.

Source
name
Source
name=(name : String)
Source
override_name
Source
override_return_type
Source
params
Source
params=(params : Array(WinMD::Param))
Source
platform
Source
platform=(platform : String | Nil)
Source
render
Source
return_attrs
Source
return_attrs=(return_attrs : Array(String))
Source
return_type
Source
return_type=(return_type : WinMD::Type)
Source
set_last_error
Source
set_last_error=(set_last_error : Bool | Nil)
Source
wrapper_name
Source
wrapper_render
Source
wrapper_return_type
Source