E
- the type of Enum
protected abstract class StructLayout.EnumField<E extends Enum<E>> extends StructLayout.NumberField
限定符和类型 | 字段和说明 |
---|---|
protected Class<E> |
enumClass |
protected EnumMapper |
enumMapper |
type
构造器和说明 |
---|
EnumField(NativeType type,
Class<E> enumClass)
Constructs a new Enum field.
|
EnumField(NativeType type,
Class<E> enumClass,
StructLayout.Offset offset)
Constructs a new Enum field.
|
限定符和类型 | 方法和说明 |
---|---|
E |
get(Pointer ptr)
Gets a java Enum value representing the native integer value.
|
String |
toString(Pointer ptr)
Returns a string representation of this field.
|
byteValue, doubleValue, floatValue, intValue, longValue, set, shortValue
enclosing, offset
protected final EnumMapper enumMapper
public EnumField(NativeType type, Class<E> enumClass)
type
- the native type of the enum.enumClass
- the Enum class.public EnumField(NativeType type, Class<E> enumClass, StructLayout.Offset offset)
type
- the native type of the enum.enumClass
- the Enum class.offset
- the offset.public E get(Pointer ptr)
ptr
- The pointer to the field.public final String toString(Pointer ptr)
toString
在类中 StructLayout.NumberField
ptr
- The pointer to the field.Copyright © 2021. All rights reserved.