class
WinMD::Function
- WinMD::Function
- WinMD::Base
- Reference
- Object
Included Modules
Defined in:
winmd/template/function.crConstructors
Class Method Summary
-
.value_type(type : String) : String
Foo*is only valid where a type is expected; as a call argument it has to be writtenPointer(Foo).
Instance Method Summary
- #after_initialize
- #apply_overrides(overrides : Array(WinMD::FunOverride))
- #apply_overrides
- #architectures : Array(String)
- #architectures=(architectures : Array(String))
- #dll_import : String
- #dll_import=(dll_import : String)
- #file=(file : WinMD::File)
- #fun_alias : String
-
#libc_call : String
Body of a wrapper that forwards to Crystal's LibC.
- #libc_fun : Bool
-
#libc_signature : LibCFuns::Signature | Nil
LibC's declaration of this function when discovery found one; nil for names that only come from fun_exceptions.json or --libc-funs.
-
#libc_wrapper? : Bool
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.
- #name : String
- #name=(name : String)
- #override_name : String
- #override_return_type : String
- #params : Array(WinMD::Param)
- #params=(params : Array(WinMD::Param))
- #platform : String | Nil
- #platform=(platform : String | Nil)
- #render
- #return_attrs : Array(String)
- #return_attrs=(return_attrs : Array(String))
- #return_type : WinMD::Type
- #return_type=(return_type : WinMD::Type)
- #set_last_error : Bool | Nil
- #set_last_error=(set_last_error : Bool | Nil)
- #wrapper_name : String
- #wrapper_render
- #wrapper_return_type : String
Instance methods inherited from module WinMD::Architecture
architectures?
architectures?,
render_arches
render_arches
Instance methods inherited from class WinMD::Base
after_initialize
after_initialize,
attrs : JSON::Any | Nil
attrs,
attrs=(attrs : JSON::Any | Nil)
attrs=,
file : WinMD::File | Nil
file,
file=(file : WinMD::File)
file=,
nested_type : Bool
nested_type,
nested_type=(nested_type : Bool)
nested_type=,
pad(p_size : Int32)pad pad, pad_size : Int32 pad_size, pad_size=(pad_size : Int32) pad_size=, pointer=(pointer : Bool) pointer=, pointer? : Bool pointer?
Constructor methods inherited from class WinMD::Base
new(pull : JSON::PullParser)
new
Constructor Detail
Class Method Detail
Foo* is only valid where a type is expected; as a call argument it has
to be written Pointer(Foo).
Instance Method Detail
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.
LibC's declaration of this function when discovery found one; nil for names that only come from fun_exceptions.json or --libc-funs.
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.