Class Union


  • public final class Union
    extends Aggregate
    Describes the layout of a C union
    • Field Detail

      • fields

        private final Type[] fields
    • Constructor Detail

      • Union

        public Union​(Type... fields)
        Creates a new C union layout description.
        Parameters:
        fields - The fields contained in the union.
    • Method Detail

      • newUnion

        public static Union newUnion​(Type... fields)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Type