- 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.Poll.PollFd
-
- All Implemented Interfaces:
Native
- Enclosing class:
- Poll
public static final class Poll.PollFd extends Struct32
POSIX:structure pollfd.
-
-
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 PollFd()PollFd(OpaqueMemory32 owner, int offset)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intalignof()shortevents()The input event flags.voidevents(short events)The input event flags.intfd()The file descriptor being polled.voidfd(int fd)The file descriptor being polled.voidnativeToString(Appendable sb, String indentPrefix, String indent)shortrevents()The output event flags.voidrevents(short revents)The output event flags.static intsizeof()Get the real size of struct pollfd 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
-
PollFd
public PollFd(OpaqueMemory32 owner, int offset)
-
PollFd
public PollFd()
-
-
Method Detail
-
sizeof
@SizeOf public static int sizeof()
Get the real size of struct pollfd natively.- Returns:
- the native value sizeof(struct pollfd).
-
alignof
@AlignOf public static int alignof()
-
events
public short events()
The input event flags. POSIX:structure pollfd.- Returns:
- the native value of events;
-
events
public void events(short events)
The input event flags. POSIX:structure pollfd.- Parameters:
events- the value of events to be set natively.
-
fd
public int fd()
The file descriptor being polled. POSIX:structure pollfd.- Returns:
- the native value of fd;
-
fd
public void fd(int fd)
The file descriptor being polled. POSIX:structure pollfd.- Parameters:
fd- the value of fd to be set natively.
-
revents
public short revents()
The output event flags. POSIX:structure pollfd.- Returns:
- the native value of revents;
-
revents
public void revents(short revents)
The output event flags. POSIX:structure pollfd.- Parameters:
revents- the value of revents 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
-
-