Interface PollableInputStreamInterface.OnReadNonblocking

Enclosing class:
PollableInputStreamInterface
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PollableInputStreamInterface.OnReadNonblocking
  • Method Details

    • onReadNonblocking

      long onReadNonblocking(CallbackHandler __self, @Nonnull PollableInputStream stream, @Nullable Pointer buffer, long count)
      Parameters:
      stream - a #GPollableInputStream
      buffer - a buffer to read data into (which should be at least @count bytes long).
      count - the number of bytes you want to read
      Returns:
      the number of bytes read, or -1 on error (including %G_IO_ERROR_WOULD_BLOCK).