|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjnr.ffi.Struct.Member
jnr.ffi.Struct.NumberField
jnr.ffi.Struct.Unsigned16
public class Struct.Unsigned16
A 16 bit signed integer field.
| Field Summary |
|---|
| Fields inherited from class jnr.ffi.Struct.NumberField |
|---|
type |
| Constructor Summary | |
|---|---|
Struct.Unsigned16()
Creates a new 16 bit integer field. |
|
Struct.Unsigned16(Struct.Offset offset)
Creates a new 16 bit unsigned integer field at a specific offset |
|
| Method Summary | |
|---|---|
int |
get()
Gets the value for this field. |
int |
intValue()
Returns a java int representation of this field. |
void |
set(int value)
Sets the value for this field. |
void |
set(Number value)
Sets the field to a new value. |
| Methods inherited from class jnr.ffi.Struct.NumberField |
|---|
byteValue, doubleValue, floatValue, getMemory, longValue, offset, shortValue, struct, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Struct.Unsigned16()
public Struct.Unsigned16(Struct.Offset offset)
offset - The offset within the memory area for this field.| Method Detail |
|---|
public final int get()
public final void set(int value)
value - the 16 bit unsigned value to set.public void set(Number value)
Struct.NumberField
set in class Struct.NumberFieldvalue - The new value.public final int intValue()
intValue in class Struct.NumberField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||