- 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.Time.Itimerspec
-
- All Implemented Interfaces:
Native
- Enclosing class:
- Time
public static class Time.Itimerspec extends Struct32
POSIX:structure itimerspec.
-
-
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 Modifier and Type Field Description Time.Timespecit_intervalTimer period.Time.Timespecit_valueTimer expiration.-
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 Itimerspec()Itimerspec(boolean clearMem)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intalignof()booleanequals(Object obj)inthashCode()voidnativeToString(Appendable sb, String indentPrefix, String indent)static intoffsetof_It_interval()static intoffsetof_It_value()static intsizeof()Get the real size of struct itimerspec 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, getByte, memset, nativeToString, offsetof, printMemory, printMemory, setByte, toBytes, toString
-
Methods inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
ENOMEM, isSameAddress
-
-
-
-
Field Detail
-
it_interval
public final Time.Timespec it_interval
Timer period. After the timer expires after it_value, it will fire periodically with the it_interval value. POSIX:structure itimerspec.
-
it_value
public final Time.Timespec it_value
Timer expiration. After the timer expires after it_value, it will fire periodically with the it_interval value. POSIX:structure itimerspec.
-
-
Constructor Detail
-
Itimerspec
public Itimerspec(boolean clearMem) throws NoSuchNativeTypeException- Throws:
NoSuchNativeTypeException
-
Itimerspec
public Itimerspec() throws NoSuchNativeTypeException- Throws:
NoSuchNativeTypeException
-
-
Method Detail
-
sizeof
@SizeOf public static int sizeof()
Get the real size of struct itimerspec natively.- Returns:
- the native value sizeof(struct itimerspec).
-
alignof
@AlignOf public static int alignof()
-
offsetof_It_interval
public static int offsetof_It_interval()
-
offsetof_It_value
public static int offsetof_It_value()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classOpaqueMemory32
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classOpaqueMemory32
-
nativeToString
public void nativeToString(Appendable sb, String indentPrefix, String indent) throws IOException
- Specified by:
nativeToStringin interfaceNative- Overrides:
nativeToStringin classOpaqueMemory32- Throws:
IOException
-
-