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, 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)
public String toString()
Struct.PointerField
Pointer
.toString
in class Struct.PointerField
Pointer
.Copyright © 2017. All rights reserved.