- 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.Timespec
-
- All Implemented Interfaces:
Native
- Enclosing class:
- Time
public static class Time.Timespec extends Struct32
POSIX:structure timespec.
-
-
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 Timespec()Timespec(boolean cleanMem)Timespec(OpaqueMemory32 parent, int offset)Timespec(OpaqueMemory32 parent, OpaqueMemory32 prev)
-
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 intsizeof()Get the real size of struct timespec natively.longtv_nsec()Nanoseconds.voidtv_nsec(long tv_nsec)Nanoseconds.longtv_sec()Seconds.voidtv_sec(long tv_sec)Seconds.-
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
-
-
-
-
Constructor Detail
-
Timespec
public Timespec()
-
Timespec
public Timespec(OpaqueMemory32 parent, int offset)
-
Timespec
public Timespec(OpaqueMemory32 parent, OpaqueMemory32 prev)
-
Timespec
public Timespec(boolean cleanMem)
-
-
Method Detail
-
sizeof
@SizeOf public static int sizeof()
Get the real size of struct timespec natively.- Returns:
- the native value sizeof(struct timespec).
-
alignof
@AlignOf public static int alignof()
-
tv_sec
public long tv_sec()
Seconds. POSIX:structure timespec.- Returns:
- the native value of tv_sec.
-
tv_sec
public void tv_sec(long tv_sec)
Seconds. POSIX:structure timespec.- Parameters:
tv_sec- the value of tv_sec to be set natively.
-
tv_nsec
public long tv_nsec()
Nanoseconds. POSIX:structure timespec.- Returns:
- the native value of tv_nsec.
-
tv_nsec
public void tv_nsec(long tv_nsec)
Nanoseconds. POSIX:structure timespec.- Parameters:
tv_nsec- the value of tv_nsec 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
-
hashCode
public int hashCode()
- Overrides:
hashCodein classOpaqueMemory32
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classOpaqueMemory32
-
-