com.kenai.jaffl.struct

Class Struct.NumberField

protected abstract class Struct.NumberField extends Number implements Struct.Member

Base class for all Number structure fields.
Constructor Summary
protected NumberField(int size)
protected NumberField(int size, Struct.Offset offset)
protected NumberField(int size, int align, Struct.Offset offset)
protected NumberField(int size, int align)
Method Summary
MemoryIOgetMemoryIO()
Gets the MemoryIO used to read/write this Member.
longoffset()
Gets the offset within the structure for this field.
abstract voidset(Number value)
Sets the field to a new value.
Structstruct()
Gets the Struct this Member is in.

Constructor Detail

NumberField

protected NumberField(int size)

NumberField

protected NumberField(int size, Struct.Offset offset)

NumberField

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

NumberField

protected NumberField(int size, int align)

Method Detail

getMemoryIO

public final MemoryIO getMemoryIO()
Gets the MemoryIO used to read/write this Member.

Returns: a MemoryIO.

offset

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

set

public abstract void set(Number value)
Sets the field to a new value.

Parameters: value The new value.

struct

public final Struct struct()
Gets the Struct this Member is in.

Returns: a Struct.