jnr.ffi
Class StructLayout.AbstractField

java.lang.Object
  extended by jnr.ffi.StructLayout.AbstractField
All Implemented Interfaces:
StructLayout.Field
Direct Known Subclasses:
StructLayout.AbstractBoolean, StructLayout.NumberField, StructLayout.Padding
Enclosing class:
StructLayout

protected abstract class StructLayout.AbstractField
extends Object
implements StructLayout.Field

Base implementation of Member


Constructor Summary
protected StructLayout.AbstractField(int size, int align)
           
protected StructLayout.AbstractField(int size, int align, Struct.Offset offset)
           
protected StructLayout.AbstractField(NativeType type)
           
protected StructLayout.AbstractField(NativeType type, Struct.Offset offset)
           
 
Method Summary
 StructLayout enclosing()
          Gets the Struct this Member is a member of.
 long offset()
          Gets the offset within the structure for this field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructLayout.AbstractField

protected StructLayout.AbstractField(int size,
                                     int align,
                                     Struct.Offset offset)

StructLayout.AbstractField

protected StructLayout.AbstractField(int size,
                                     int align)

StructLayout.AbstractField

protected StructLayout.AbstractField(NativeType type)

StructLayout.AbstractField

protected StructLayout.AbstractField(NativeType type,
                                     Struct.Offset offset)
Method Detail

enclosing

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

Specified by:
enclosing in interface StructLayout.Field
Returns:
a Struct.

offset

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

Specified by:
offset in interface StructLayout.Field


Copyright © 2012. All Rights Reserved.