public class StructLayout.Unsigned32 extends StructLayout.NumberField
type
Constructor and Description |
---|
Unsigned32()
Creates a new 32 bit integer field.
|
Unsigned32(StructLayout.Offset offset)
Creates a new 32 bit unsigned integer 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.
|
byteValue, doubleValue, floatValue, shortValue, toString
enclosing, offset
public Unsigned32()
public Unsigned32(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 bit unsigned 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.Copyright © 2017. All rights reserved.