Package jnr.ffi
Class Struct.AbstractMember
- java.lang.Object
-
- jnr.ffi.Struct.Member
-
- jnr.ffi.Struct.AbstractMember
-
- Direct Known Subclasses:
Struct.AbstractBoolean,Struct.Function,Struct.Padding,Struct.String
- Enclosing class:
- Struct
protected abstract class Struct.AbstractMember extends Struct.Member
Base implementation of Member
-
-
Field Summary
Fields Modifier and Type Field Description private intoffset
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractMember(int size)protectedAbstractMember(int size, int align)protectedAbstractMember(int size, int align, Struct.Offset offset)protectedAbstractMember(NativeType type)protectedAbstractMember(NativeType type, Struct.Offset offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PointergetMemory()Gets the memory object used to store thisMemberlongoffset()Gets the offset within the structure for this field.Structstruct()Gets the Struct this Member is a member of.
-
-
-
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)
-
AbstractMember
protected AbstractMember(NativeType type, Struct.Offset offset)
-
-
Method Detail
-
getMemory
public final Pointer getMemory()
Description copied from class:Struct.MemberGets the memory object used to store thisMember- Specified by:
getMemoryin classStruct.Member- Returns:
- a
Pointer
-
struct
public final Struct struct()
Gets the Struct this Member is a member of.- Specified by:
structin classStruct.Member- Returns:
- a Struct.
-
offset
public final long offset()
Gets the offset within the structure for this field.- Specified by:
offsetin classStruct.Member- Returns:
- the offset within the structure for this field.
-
-