public class StructLayout.UnsignedLong extends StructLayout.NumberField
type
Constructor and Description |
---|
UnsignedLong()
Creates a new native long field.
|
UnsignedLong(StructLayout.Offset offset)
Creates a new unsigned native long field at a specific offset
|
Modifier and Type | Method and Description |
---|---|
long |
get(Pointer ptr)
Gets the value for this field.
|
int |
intValue(Pointer ptr)
Returns a java int representation of this field.
|
long |
longValue(Pointer ptr)
Returns a java long representation of this field.
|
void |
set(Pointer ptr,
long value)
Sets the value for this field.
|
void |
set(Pointer ptr,
Number value)
Sets the field to a new value.
|
String |
toString(Pointer ptr)
Returns a string representation of this field.
|
byteValue, doubleValue, floatValue, shortValue
enclosing, offset
public UnsignedLong()
public UnsignedLong(StructLayout.Offset offset)
offset
- The offset within the memory area for this field.public final long get(Pointer ptr)
ptr
- The pointer to the field.public final void set(Pointer ptr, long value)
ptr
- The pointer to the field.value
- the 32/64 bit value to set.public void set(Pointer ptr, Number value)
StructLayout.NumberField
set
in class StructLayout.NumberField
ptr
- The pointer to the field.value
- The new value.public final int intValue(Pointer ptr)
intValue
in class StructLayout.NumberField
ptr
- The pointer to the field.public final long longValue(Pointer ptr)
longValue
in class StructLayout.NumberField
ptr
- The pointer to the field.public final String toString(Pointer ptr)
toString
in class StructLayout.NumberField
ptr
- The pointer to the field.Copyright © 2017. All rights reserved.