Module de.ibapl.jnhw.posix
Package de.ibapl.jnhw.posix
Class Signal.Stack_t<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.Stack_t<T>
-
- All Implemented Interfaces:
Native
- Enclosing class:
- Signal
public static class Signal.Stack_t<T extends OpaqueMemory32> extends Struct32
POSIX:structure stack_t.
-
-
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 Stack_t()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intalignof()voidnativeToString(Appendable sb, String indentPrefix, String indent)static <T extends OpaqueMemory32>
Signal.Stack_t<T>of(int ss_flags, T ss_sp)Create a new Stack_t and set s_flags, ss_size and ss_sp.static intsizeof()Get the real size of struct stack_t natively.intss_flags()Flags.longss_size()Stack size.Tss_sp(OpaqueMemory32.OpaqueMemory32Producer<T,Signal.Stack_t<T>> producer)Stack base or pointer.-
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
-
-
-
-
Method Detail
-
sizeof
@SizeOf public static int sizeof()
Get the real size of struct stack_t natively.- Returns:
- the native value sizeof(struct stack_t).
-
alignof
@AlignOf public static int alignof()
-
of
public static <T extends OpaqueMemory32> Signal.Stack_t<T> of(int ss_flags, T ss_sp)
Create a new Stack_t and set s_flags, ss_size and ss_sp.- Parameters:
ss_flags-ss_sp-- Returns:
-
ss_sp
public final T ss_sp(OpaqueMemory32.OpaqueMemory32Producer<T,Signal.Stack_t<T>> producer)
Stack base or pointer. POSIX:structure stack_t.- Returns:
- the native value of ss_sp.
-
ss_size
public final long ss_size()
Stack size. POSIX:structure stack_t.- Returns:
- the native value of ss_size.
-
ss_flags
public final int ss_flags()
Flags. POSIX:structure stack_t.- Returns:
- the native value of ss_flags.
-
nativeToString
public void nativeToString(Appendable sb, String indentPrefix, String indent) throws IOException
- Specified by:
nativeToStringin interfaceNative- Overrides:
nativeToStringin classOpaqueMemory32- Throws:
IOException
-
-