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 int
offset
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMember(int size)
protected
AbstractMember(int size, int align)
protected
AbstractMember(int size, int align, Struct.Offset offset)
protected
AbstractMember(NativeType type)
protected
AbstractMember(NativeType type, Struct.Offset offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pointer
getMemory()
Gets the memory object used to store thisMember
long
offset()
Gets the offset within the structure for this field.Struct
struct()
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.Member
Gets the memory object used to store thisMember
- Specified by:
getMemory
in classStruct.Member
- Returns:
- a
Pointer
-
struct
public final Struct struct()
Gets the Struct this Member is a member of.- Specified by:
struct
in classStruct.Member
- Returns:
- a Struct.
-
offset
public final long offset()
Gets the offset within the structure for this field.- Specified by:
offset
in classStruct.Member
- Returns:
- the offset within the structure for this field.
-
-