- java.lang.Object
-
- de.ibapl.jnhw.common.memory.AbstractNativeMemory
-
- de.ibapl.jnhw.common.memory.OpaqueMemory32
-
- de.ibapl.jnhw.common.memory.Struct32
-
- de.ibapl.jnhw.posix.Pthread.Pthread_t
-
- All Implemented Interfaces:
Native
- Enclosing class:
- Pthread
public static final class Pthread.Pthread_t extends Struct32
POSIX:typedef pthread_t.- 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.NativeMemoryAlignment
-
-
Field Summary
-
Fields inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
sizeInBytes
-
Fields inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
baseAddress, LOG, memoryOwner
-
-
Constructor Summary
Constructors Constructor Description Pthread_t()Pthread_t(NativeAddressHolder baseAddress)Pthread_t(OpaqueMemory32 owner, int offset)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intalignof()StringnativeToString()voidnativeToString(Appendable sb, String indentPrefix, String indent)static intsizeof()Get the real size of struct pthread_t natively.-
Methods inherited from class de.ibapl.jnhw.common.memory.Struct32
getBaseDataType, nativeToHexString
-
Methods inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
calcNextOffset, clear, copy, copy, equals, getByte, hashCode, memset, offsetof, printMemory, printMemory, setByte, toBytes, toString
-
Methods inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
ENOMEM, isSameAddress
-
-
-
-
Constructor Detail
-
Pthread_t
public Pthread_t()
-
Pthread_t
public Pthread_t(OpaqueMemory32 owner, int offset)
-
Pthread_t
public Pthread_t(NativeAddressHolder baseAddress)
-
-
Method Detail
-
sizeof
@SizeOf public static int sizeof()
Get the real size of struct pthread_t natively.- Returns:
- the native value sizeof(struct pthread_t).
-
alignof
@AlignOf public static int alignof()
-
nativeToString
public void nativeToString(Appendable sb, String indentPrefix, String indent) throws IOException
- Specified by:
nativeToStringin interfaceNative- Overrides:
nativeToStringin classOpaqueMemory32- Throws:
IOException
-
nativeToString
public String nativeToString()
- Specified by:
nativeToStringin interfaceNative- Overrides:
nativeToStringin classOpaqueMemory32
-
-