struct Candiru::StructBuilder
- Candiru::StructBuilder
- Struct
- Value
- Object
Overview
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.
Defined in:
candiru.crConstructors
Instance Method Summary
-
#<<(value : StructInstance)
Appends a field with pointer to value.
-
#<<(value : T) forall T
Appends a field with value.
-
#malloc
Allocates memory for an instance, writes field values there, and returns the resulting
StructInstance
.
Constructor Detail
Instance Method Detail
def malloc
#
Allocates memory for an instance, writes field values
there, and returns the resulting StructInstance
.