Class SubscriptionIO


  • public class SubscriptionIO
    extends Subscription
    I/O event subscription.
    • 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.
    • Method Detail

      • onReadEvent

        public boolean onReadEvent()
        Tells whether the subscription is on read.
        Returns:
        true if the subscription is on read event; false if on write event.
      • getFd

        public int getFd()
        Return the corresponding WasiIO object.
        Returns:
        the corresponding WasiIO object.