Module de.ibapl.jnhw.common
Package de.ibapl.jnhw.common.memory
Class PointerArray32<T extends OpaqueMemory32>
- java.lang.Object
-
- de.ibapl.jnhw.common.memory.AbstractNativeMemory
-
- de.ibapl.jnhw.common.memory.OpaqueMemory32
-
- de.ibapl.jnhw.common.memory.PointerArray32<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Native
public class PointerArray32<T extends OpaqueMemory32> extends OpaqueMemory32
- Author:
- aploese
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePointerArray32.ElementProducer<T extends OpaqueMemory32>-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
OpaqueMemory32.OpaqueMemory32Producer<T extends OpaqueMemory32,P extends AbstractNativeMemory>
-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
AbstractNativeMemory.SetMem
-
-
Field Summary
-
Fields inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
sizeInBytes
-
Fields inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
baseAddress, CLEANER, LOG, MEM_ACCESS, MEM_ACCESS_PROPERTY, NULL, parent
-
-
Constructor Summary
Constructors Constructor Description PointerArray32(int arrayLength, AbstractNativeMemory.SetMem setMem)PointerArray32(int arrayLength, OpaqueMemory32 parent, long offset, AbstractNativeMemory.SetMem setMem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget(int index, PointerArray32.ElementProducer<T> p)BaseDataTypegetBaseDataType()intlength()length is alway>= 0StringnativeToHexString()voidnativeToString(Appendable sb, String indentPrefix, String indent)voidset(int i, T element)-
Methods inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
checkIndex, clear, copy, copy, equals, getByte, getSizeInBytes, hashCode, memset, nativeToString, printMemory, printMemory, setByte, setMemTo, toBytes, toString
-
Methods inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
calcOffsetForAlignment, getOffset, getSizeInBytes, isSameAddress, offsetof, toNativeAddressHolder, toUintptr_t, toUintptr_tOrNULL
-
-
-
-
Constructor Detail
-
PointerArray32
public PointerArray32(int arrayLength, AbstractNativeMemory.SetMem setMem)
-
PointerArray32
public PointerArray32(int arrayLength, OpaqueMemory32 parent, long offset, AbstractNativeMemory.SetMem setMem)
-
-
Method Detail
-
set
public void set(int i, T element)
-
getBaseDataType
public BaseDataType getBaseDataType()
-
nativeToHexString
public String nativeToHexString()
-
get
public final T get(int index, PointerArray32.ElementProducer<T> p)
-
length
public final int length()
length is alway>= 0- Returns:
- the length of this array of pointer.
-
nativeToString
public void nativeToString(Appendable sb, String indentPrefix, String indent) throws IOException
- Specified by:
nativeToStringin interfaceNative- Overrides:
nativeToStringin classOpaqueMemory32- Throws:
IOException
-
-