public abstract class StructLayout.IntegerAlias extends StructLayout.NumberField
type| Modifier | Constructor and Description |
|---|---|
protected |
IntegerAlias(TypeAlias type) |
protected |
IntegerAlias(TypeAlias type,
StructLayout.Offset offset) |
| Modifier and Type | Method and Description |
|---|---|
long |
get(Pointer ptr)
Gets the value for this field.
|
int |
intValue(Pointer ptr)
Returns a
int representation of this Number. |
long |
longValue(Pointer ptr)
Returns a
long representation of this Number. |
void |
set(Pointer ptr,
long value) |
void |
set(Pointer ptr,
Number value)
Sets the field to a new value.
|
byteValue, doubleValue, floatValue, shortValue, toStringenclosing, offsetprotected IntegerAlias(TypeAlias type)
protected IntegerAlias(TypeAlias type, StructLayout.Offset offset)
public void set(Pointer ptr, Number value)
StructLayout.NumberFieldset in class StructLayout.NumberFieldptr - The pointer to the field.value - The new value.public void set(Pointer ptr, long value)
public final long get(Pointer ptr)
ptr - The pointer to the field.public int intValue(Pointer ptr)
StructLayout.NumberFieldint representation of this Number.intValue in class StructLayout.NumberFieldptr - The pointer to the field.int value for this Number.public long longValue(Pointer ptr)
StructLayout.NumberFieldlong representation of this Number.longValue in class StructLayout.NumberFieldptr - The pointer to the field.long value for this Number.Copyright © 2017. All rights reserved.