T - - Struct typepublic class Struct.StructRef<T extends Struct> extends Struct.PointerField
type| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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, sizebyteValue, doubleValue, floatValue, getMemory, offset, shortValue, structpublic 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)
public String toString()
Struct.PointerFieldPointer.toString in class Struct.PointerFieldPointer.Copyright © 2017. All rights reserved.