public class StructLayout.EnumLong<E extends Enum<E>> extends StructLayout.EnumField<E>
enumClass, enumMapper
type
Constructor and Description |
---|
EnumLong(Class<E> enumClass) |
EnumLong(Class<E> enumClass,
StructLayout.Offset offset) |
Modifier and Type | Method and Description |
---|---|
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,
E value) |
void |
set(Pointer ptr,
Number value)
Sets the field to a new value.
|
get, toString
byteValue, doubleValue, floatValue, shortValue
enclosing, offset
public EnumLong(Class<E> enumClass, StructLayout.Offset offset)
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)
StructLayout.NumberField
int
representation of this Number.intValue
in class StructLayout.NumberField
ptr
- The pointer to the field.int
value for this Number.public final long longValue(Pointer ptr)
StructLayout.NumberField
long
representation of this Number.longValue
in class StructLayout.NumberField
ptr
- The pointer to the field.long
value for this Number.Copyright © 2017. All rights reserved.