- java.lang.Object
-
- de.ibapl.jnhw.common.memory.AbstractNativeMemory
-
- de.ibapl.jnhw.common.memory.OpaqueMemory32
-
- de.ibapl.jnhw.common.memory.Memory32Heap
-
- All Implemented Interfaces:
Native
public class Memory32Heap extends OpaqueMemory32
- Author:
- aploese
-
-
Nested Class Summary
-
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 Memory32Heap(AbstractNativeMemory owner, long offset, int sizeInBytes, AbstractNativeMemory.SetMem setMem)Memory32Heap(NativeAddressHolder nativeAddress, int sizeInBytes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAlignmentOffset(long offset, Alignment alignment)BaseDataTypegetBaseDataType()StringnativeToHexString()longnextOffset(AbstractNativeMemory fieldOnTheFly, Alignment fieldAlignment)static Memory32Heapof(byte[] bytes)-
Methods inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
checkIndex, clear, copy, copy, equals, getByte, getSizeInBytes, hashCode, memset, nativeToString, 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
-
Memory32Heap
public Memory32Heap(AbstractNativeMemory owner, long offset, int sizeInBytes, AbstractNativeMemory.SetMem setMem)
-
Memory32Heap
public Memory32Heap(NativeAddressHolder nativeAddress, int sizeInBytes)
-
-
Method Detail
-
of
public static Memory32Heap of(byte[] bytes)
-
getBaseDataType
public BaseDataType getBaseDataType()
-
nativeToHexString
public String nativeToHexString()
-
nextOffset
public long nextOffset(AbstractNativeMemory fieldOnTheFly, Alignment fieldAlignment)
-
getAlignmentOffset
public long getAlignmentOffset(long offset, Alignment alignment)
-
-