Module de.ibapl.jnhw.posix
Package de.ibapl.jnhw.posix
Class Signal.Sigval<T extends OpaqueMemory32>
- 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.Signal.Sigval<T>
-
- All Implemented Interfaces:
Native
- Enclosing class:
- Signal
public static final class Signal.Sigval<T extends OpaqueMemory32> extends Struct32
POSIX:structure sigval.
-
-
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 Sigval()Sigval(NativeAddressHolder baseAddress)Sigval(OpaqueMemory32 owner, int offset)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intalignof()voidnativeToString(Appendable sb, String indentPrefix, String indent)intsival_int()Integer signal value.voidsival_int(int sival_int)Integer signal value.Tsival_ptr(OpaqueMemory32.OpaqueMemory32Producer<T,Signal.Sigval<T>> producer)Pointer signal value.voidsival_ptr(T sival_ptr)Pointer signal value.static intsizeof()Get the real size of struct sigval 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, nativeToString, offsetof, printMemory, printMemory, setByte, toBytes, toString
-
Methods inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
ENOMEM, isSameAddress
-
-
-
-
Constructor Detail
-
Sigval
public Sigval()
-
Sigval
public Sigval(OpaqueMemory32 owner, int offset)
-
Sigval
public Sigval(NativeAddressHolder baseAddress)
-
-
Method Detail
-
sizeof
@SizeOf public static int sizeof()
Get the real size of struct sigval natively.- Returns:
- the native value sizeof(struct sigval).
-
alignof
@AlignOf public static int alignof()
-
sival_int
public int sival_int()
Integer signal value. POSIX:union sigval.- Returns:
- the native value of sival_int.
-
sival_int
public void sival_int(int sival_int)
Integer signal value. POSIX:union sigval.- Parameters:
sival_int- the value of sival_int to be set natively.
-
sival_ptr
public T sival_ptr(OpaqueMemory32.OpaqueMemory32Producer<T,Signal.Sigval<T>> producer)
Pointer signal value. POSIX:union sigval.- Returns:
- the native value of sival_ptr.
-
sival_ptr
public final void sival_ptr(T sival_ptr)
Pointer signal value. POSIX:union sigval.- Parameters:
sival_ptr- the value of sival_ptr to be set natively.
-
nativeToString
public void nativeToString(Appendable sb, String indentPrefix, String indent) throws IOException
- Specified by:
nativeToStringin interfaceNative- Overrides:
nativeToStringin classOpaqueMemory32- Throws:
IOException
-
-