Package jnr.ffi

Class Struct.AbstractMember

    • Field Detail

      • offset

        private final int offset
    • Constructor Detail

      • AbstractMember

        protected AbstractMember​(int size)
      • AbstractMember

        protected AbstractMember​(int size,
                                 int align,
                                 Struct.Offset offset)
      • AbstractMember

        protected AbstractMember​(int size,
                                 int align)
      • AbstractMember

        protected AbstractMember​(NativeType type)
    • Method Detail

      • struct

        public final Struct struct()
        Gets the Struct this Member is a member of.
        Specified by:
        struct in class Struct.Member
        Returns:
        a Struct.
      • offset

        public final long offset()
        Gets the offset within the structure for this field.
        Specified by:
        offset in class Struct.Member
        Returns:
        the offset within the structure for this field.