jnr.ffi
Class StructLayout.Field

java.lang.Object
  extended by jnr.ffi.StructLayout.Field
Direct Known Subclasses:
StructLayout.AbstractField, StructLayout.NumberField
Enclosing class:
StructLayout

protected abstract class StructLayout.Field
extends Object

Interface all Struct members must implement.


Constructor Summary
protected StructLayout.Field(int 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.Field

protected StructLayout.Field(int offset)
Method Detail

enclosing

public final StructLayout enclosing()
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 © 2013. All Rights Reserved.