module Candiru::IValueClassType

Overview

Non-generic supertype for the generic ValueClass.

Direct including types

Defined in:

candiru.cr

Instance Method Summary

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.


[View source]
abstract def from_ffi_return_pointer(pointer : Pointer(Void)) #

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


[View source]
def matches?(other) #

Returns whether this value class matches other value.


[View source]
abstract def to_ffi : FFI::Type #

Returns the FFI type corresponding to this value class.

Int32.to_ffi # FFI::Type.sint32

[View source]