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