Class FFM.StructBinderBuilder<T>
java.lang.Object
org.lwjgl.system.ffm.FFM.GroupBinderBuilder<T, StructLayout, StructBinder<T>, FFM.StructBinderBuilder<T>>
org.lwjgl.system.ffm.FFM.StructBinderBuilder<T>
- Enclosing class:
FFM
public static final class FFM.StructBinderBuilder<T>
extends FFM.GroupBinderBuilder<T, StructLayout, StructBinder<T>, FFM.StructBinderBuilder<T>>
A builder for
StructBinder instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Generates a class that implements theStructBinderinterface for the struct type using the current builder state, then returns a new instance of that class.m(String name, MemoryLayout layout) Adds a new member to this group.Methods inherited from class FFM.GroupBinderBuilder
alignas, automaticPadding, checkPadding, m, pack, padding, withEquals, withHashCode, withToString
-
Method Details
-
m
Description copied from class:FFM.GroupBinderBuilderAdds a new member to this group.- Overrides:
min classFFM.GroupBinderBuilder<T, StructLayout, StructBinder<T>, FFM.StructBinderBuilder<T>>- Parameters:
name- the member namelayout- the member's memory layout- Returns:
- this builder instance
-
build
Generates a class that implements theStructBinderinterface for the struct type using the current builder state, then returns a new instance of that class.- Overrides:
buildin classFFM.GroupBinderBuilder<T, StructLayout, StructBinder<T>, FFM.StructBinderBuilder<T>>- Returns:
- the
StructBinderimplementation
-