Candiru::FieldValue(T)
Inherits Candiru::IFieldValue < Struct < Value < Object
A TypedField(T) grouped with the appropriately typed value.
Constructors
new(field : TypedField(T), value : ValueInstance(T))
SourceInstance methods
as_struct_instance?
Converts the field value to a struct instance. Field value
must be a valid pointer address (UInt64). Typed field
must have a scaffolding attached.
Returns nil if any of those conditions are false.
clone
Sourcecopy_with(field _field = @field, value _value = @value)
Sourcefield
to_s(io)
Sourcevalue
write(struct_pointer) : Pointer(T)
Writes value at struct_pointer plus the required field offset, and returns the resulting pointer to value.