module

Candiru::ValueClass(T)

Inherits Candiru::IValueClassType

Should be extended by objects that want to be Crystal- facing FFI description objects (e.g. Int32, Float64).

Instance methods

adopt_as_field_value(field : ITypedField, pointer : Pointer(Void)) : FieldValue(T)

Performs the necessary type sorcery to create a FieldValue(T) from a void pointer and the corresponding typed field.

Source
from_ffi_return_pointer(pointer : Pointer(Void))

Casts pointer, a return value hole from FFI, to this type, and returns its value.

Source
matches?(other : T)
Source