jnr.ffi
Class Struct.AbstractMember

java.lang.Object
  extended by jnr.ffi.Struct.Member
      extended by jnr.ffi.Struct.AbstractMember
Direct Known Subclasses:
Struct.AbstractBoolean, Struct.Padding, Struct.String
Enclosing class:
Struct

protected abstract class Struct.AbstractMember
extends Struct.Member

Base implementation of Member


Constructor Summary
protected Struct.AbstractMember(int size)
           
protected Struct.AbstractMember(int size, int align)
           
protected Struct.AbstractMember(int size, int align, Struct.Offset offset)
           
protected Struct.AbstractMember(NativeType type)
           
protected Struct.AbstractMember(NativeType type, Struct.Offset offset)
           
 
Method Summary
 Pointer getMemory()
          Gets the memory object used to store this Member
 long offset()
          Gets the offset within the structure for this field.
 Struct struct()
          Gets the Struct this Member is a member of.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Struct.AbstractMember

protected Struct.AbstractMember(int size)

Struct.AbstractMember

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

Struct.AbstractMember

protected Struct.AbstractMember(int size,
                                int align)

Struct.AbstractMember

protected Struct.AbstractMember(NativeType type)

Struct.AbstractMember

protected Struct.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 this Member

Returns:
a Pointer

struct

public final Struct struct()
Gets the Struct this Member is a member of.

Returns:
a Struct.

offset

public final long offset()
Gets the offset within the structure for this field.



Copyright © 2012. All Rights Reserved.