Package de.linusdev.lutils.struct.info
Class ComplexStructureInfo
java.lang.Object
de.linusdev.lutils.struct.info.StructureInfo
de.linusdev.lutils.struct.info.ComplexStructureInfo
- All Implemented Interfaces:
MemorySizeable
-
Field Summary
FieldsFields inherited from class de.linusdev.lutils.struct.info.StructureInfo
alignment, compressed, size, sizes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ComplexStructureInfogenerateFromStructVars(int alignment, boolean compress, @NotNull StructVarInfo @NotNull [] vars) static @NotNull ComplexStructureInfogenerateFromStructVars(@NotNull StructVarInfo @NotNull [] vars) static @NotNull ComplexStructureInfogenerateFromStructVars(@NotNull Class<?> clazz) @NotNull Structure @NotNull []getChildren(@NotNull ComplexStructure instance) Gets all children through reflection.@NotNull StructVarInfo @NotNull []Methods inherited from class de.linusdev.lutils.struct.info.StructureInfo
getAlignment, getRequiredSize, getSizes, isCompressed
-
Field Details
-
childrenInfo
-
-
Method Details
-
generateFromStructVars
@NotNull public static @NotNull ComplexStructureInfo generateFromStructVars(int alignment, boolean compress, @NotNull @NotNull StructVarInfo @NotNull [] vars) -
generateFromStructVars
@NotNull public static @NotNull ComplexStructureInfo generateFromStructVars(@NotNull @NotNull StructVarInfo @NotNull [] vars) -
generateFromStructVars
@NotNull public static @NotNull ComplexStructureInfo generateFromStructVars(@NotNull @NotNull Class<?> clazz) -
getChildrenInfo
-
getChildren
@NotNull public @NotNull Structure @NotNull [] getChildren(@NotNull @NotNull ComplexStructure instance) Gets all children through reflection. This should be used sparsely. But it is required if thisStructureInfowas automatically generated (seegenerateFromStructVars(Class)) with noelement orderspecified.- Parameters:
instance- instance of theComplexStructurethis info belongs to- Returns:
- children
Structurearray
-