public abstract class Struct.PointerField extends Struct.NumberField
type| 构造器和说明 |
|---|
PointerField()
Creates a new
Address field. |
PointerField(Struct.Offset offset) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Pointer |
getPointer()
Gets the
Pointer value from the native memory. |
int |
intValue()
Returns an integer representation of this
Pointer. |
long |
longValue()
Returns an
long representation of this Pointer. |
void |
set(Number value)
Sets the field to a new value.
|
void |
set(Pointer value)
Puts a
Address value into the native memory. |
int |
size()
Gets the size of a Pointer in bits
|
String |
toString()
Returns a string representation of this
Pointer. |
byteValue, doubleValue, floatValue, getMemory, offset, shortValue, structpublic PointerField()
Address field.public PointerField(Struct.Offset offset)
protected final Pointer getPointer()
Pointer value from the native memory.Pointer.public final int size()
public final void set(Pointer value)
Address value into the native memory.value - the value to write.public void set(Number value)
Struct.NumberFieldset 在类中 Struct.NumberFieldvalue - The new value.public int intValue()
Pointer.intValue 在类中 Struct.NumberFieldPointer.public long longValue()
long representation of this Pointer.longValue 在类中 Struct.NumberFieldlong value for this Pointer.public String toString()
Pointer.toString 在类中 Struct.NumberFieldPointer.Copyright © 2021. All rights reserved.