T
- - Struct typepublic class Struct.StructRef<T extends Struct> extends Struct.PointerField
type
构造器和说明 |
---|
StructRef(Class<T> structType) |
StructRef(Class<T> structType,
int initialStructCount) |
StructRef(Struct.Offset offset,
Class<T> structType) |
StructRef(Struct.Offset offset,
Class<T> structType,
int initialStructCount) |
限定符和类型 | 方法和说明 |
---|---|
T |
get() |
T[] |
get(int length) |
void |
set(T struct) |
void |
set(T[] structs) |
String |
toString()
Returns a string representation of this
Pointer . |
getPointer, intValue, longValue, set, set, size
byteValue, doubleValue, floatValue, getMemory, offset, shortValue, struct
public StructRef(Class<T> structType, int initialStructCount)
structType
- Struct typeinitialStructCount
- the number of struct instances. Use this to allocate memory without setting value.public StructRef(Struct.Offset offset, Class<T> structType)
public StructRef(Struct.Offset offset, Class<T> structType, int initialStructCount)
offset
- offset of the fieldstructType
- Struct typeinitialStructCount
- the number of struct instances. Use this to allocate memory without setting value.public final void set(T struct)
public final void set(T[] structs)
public final T get()
public final T[] get(int length)
length
- the length of struct in memory to getpublic String toString()
Struct.PointerField
Pointer
.toString
在类中 Struct.PointerField
Pointer
.Copyright © 2021. All rights reserved.