struct

Candiru::StructBuilder

Inherits Struct < Value < Object

Helps to construct and allocate a StructInstance based on its StructScaffolding.

Makes sure the amount of struct fields is right, their type is right, etc.

Constructors

new(scaffolding : StructScaffolding)
Source

Instance methods

<<(value : StructInstance)

Appends a field with pointer to value.

Source
<<(value : T) forall T

Appends a field with value.

Source
malloc

Allocates memory for an instance, writes field values there, and returns the resulting StructInstance.

Source