Class Struct


  • public final class Struct
    extends Aggregate
    Describes the layout of a C struct
    • Field Detail

      • structReferenceQueue

        private static final java.lang.ref.ReferenceQueue<Struct> structReferenceQueue
      • fields

        private final Type[] fields
    • Constructor Detail

      • Struct

        private Struct​(Foreign foreign,
                       Type... fields)
        Creates a new C struct layout description.
        Parameters:
        fields - The fields contained in the struct.
      • Struct

        @Deprecated
        public Struct​(Type... fields)
        Deprecated.
        Creates a new C struct layout description.
        Parameters:
        fields - The fields contained in the struct.
    • Method Detail

      • newStruct

        public static Struct newStruct​(Type... fields)
      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class Type