Package ej.wasi.io.event
Class SubscriptionIO
- java.lang.Object
-
- ej.wasi.io.event.Subscription
-
- ej.wasi.io.event.SubscriptionIO
-
public class SubscriptionIO extends Subscription
I/O event subscription.
-
-
Field Summary
-
Fields inherited from class ej.wasi.io.event.Subscription
CLOCK, FD_READ, FD_WRITE
-
-
Constructor Summary
Constructors Constructor Description SubscriptionIO(long userdata, byte[] memory, int ptr, boolean onReadEvent)Creates a new I/O event subscription instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFd()Return the correspondingWasiIOobject.booleanonReadEvent()Tells whether the subscription is on read.-
Methods inherited from class ej.wasi.io.event.Subscription
deserialize, getUserData
-
-
-
-
Constructor Detail
-
SubscriptionIO
public SubscriptionIO(long userdata, byte[] memory, int ptr, boolean onReadEvent)Creates a new I/O event subscription instance.- Parameters:
userdata- the user data.memory- the memory from which to read the I/O event subscription content.ptr- the start pointer in the memory.onReadEvent- whether the subscription is on read event.
-
-