class
Rubellite::Spinel::NativeFunction
- Rubellite::Spinel::NativeFunction
- Reference
- Object
Overview
Represents a compiled native function from a Spinel module
Defined in:
rubellite/spinel.crConstructors
Instance Method Summary
-
#call(*args)
High-performance direct C-ABI invocation Dispatches dynamically based on configured return type
- #call_as(type : T.class, *args) : T forall T
- #call_bool(*args) : Bool
- #call_f32(*args) : Float32
- #call_f64(*args) : Float64
- #call_i32(*args) : Int32
- #call_i64(*args) : Int64
- #call_ptr(*args) : Pointer(Void)
- #call_u32(*args) : UInt32
- #call_u64(*args) : UInt64
- #call_void(*args) : Nil
- #fn_ptr : Pointer(Void)
- #lib_handle : Pointer(Void)
- #name : String
- #return_type_name : String
Constructor Detail
def self.new(name : String, lib_handle : Pointer(Void), fn_ptr : Pointer(Void), return_type_name : String = "Int64")
#
Instance Method Detail
def call(*args)
#
High-performance direct C-ABI invocation Dispatches dynamically based on configured return type