final class KQueueEventArray
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
capacity |
private static int |
KQUEUE_DATA_OFFSET |
private static int |
KQUEUE_EVENT_SIZE |
private static int |
KQUEUE_FFLAGS_OFFSET |
private static int |
KQUEUE_FILTER_OFFSET |
private static int |
KQUEUE_FLAGS_OFFSET |
private static int |
KQUEUE_IDENT_OFFSET |
private long |
memoryAddress |
private int |
size |
Constructor and Description |
---|
KQueueEventArray(int capacity) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
capacity()
Return the capacity of the
KQueueEventArray which represent the maximum number of kevent s
that can be stored in it. |
(package private) AbstractKQueueChannel |
channel(int index) |
private void |
checkSize() |
(package private) void |
clear() |
(package private) long |
data(int index) |
(package private) static void |
deleteGlobalRefs(long channelAddressStart,
long channelAddressEnd) |
(package private) void |
evSet(AbstractKQueueChannel ch,
short filter,
short flags,
int fflags) |
private static void |
evSet(long keventAddress,
AbstractKQueueChannel ch,
int ident,
short filter,
short flags,
int fflags) |
(package private) int |
fd(int index) |
(package private) short |
fflags(int index) |
(package private) short |
filter(int index) |
(package private) short |
flags(int index) |
(package private) void |
free()
Free this
KQueueEventArray . |
private static AbstractKQueueChannel |
getChannel(long keventAddress) |
(package private) long |
getKEventOffset(int index) |
(package private) long |
memoryAddress()
Return the
memoryAddress which points to the start of this KQueueEventArray . |
(package private) void |
realloc(boolean throwIfFail)
Increase the storage of this
KQueueEventArray . |
(package private) int |
size() |
private static final int KQUEUE_EVENT_SIZE
private static final int KQUEUE_IDENT_OFFSET
private static final int KQUEUE_FILTER_OFFSET
private static final int KQUEUE_FFLAGS_OFFSET
private static final int KQUEUE_FLAGS_OFFSET
private static final int KQUEUE_DATA_OFFSET
private long memoryAddress
private int size
private int capacity
long memoryAddress()
memoryAddress
which points to the start of this KQueueEventArray
.int capacity()
KQueueEventArray
which represent the maximum number of kevent
s
that can be stored in it.int size()
void clear()
void evSet(AbstractKQueueChannel ch, short filter, short flags, int fflags)
private void checkSize()
void realloc(boolean throwIfFail)
KQueueEventArray
.void free()
KQueueEventArray
. Any usage after calling this method may segfault the JVM!long getKEventOffset(int index)
short flags(int index)
short filter(int index)
short fflags(int index)
int fd(int index)
long data(int index)
AbstractKQueueChannel channel(int index)
private static void evSet(long keventAddress, AbstractKQueueChannel ch, int ident, short filter, short flags, int fflags)
private static AbstractKQueueChannel getChannel(long keventAddress)
static void deleteGlobalRefs(long channelAddressStart, long channelAddressEnd)