module Candiru::IValueClassType
Overview
Non-generic supertype for the generic ValueClass
.
Direct including types
Defined in:
candiru.crInstance Method Summary
-
#adopt_as_field_value(field : ITypedField, pointer : Pointer(Void))
Performs the necessary type sorcery to create a
FieldValue(T)
from a void pointer and the corresponding typed field. -
#from_ffi_return_pointer(pointer : Pointer(Void))
Casts pointer, a return value hole from FFI, to this type, and returns its value.
-
#matches?(other)
Returns whether this value class matches other value.
-
#to_ffi : FFI::Type
Returns the FFI type corresponding to this value class.
Instance Method Detail
abstract
def adopt_as_field_value(field : ITypedField, pointer : Pointer(Void))
#
Performs the necessary type sorcery to create a FieldValue(T)
from a void pointer and the corresponding typed field.
abstract
def from_ffi_return_pointer(pointer : Pointer(Void))
#
Casts pointer, a return value hole from FFI, to this type, and returns its value.
abstract
def to_ffi : FFI::Type
#
Returns the FFI type corresponding to this value class.
Int32.to_ffi # FFI::Type.sint32