Interface PollableOutputStreamInterface.OnWriteNonblocking

Enclosing class:
PollableOutputStreamInterface
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 PollableOutputStreamInterface.OnWriteNonblocking
  • Method Details

    • onWriteNonblocking

      long onWriteNonblocking(CallbackHandler __self, @Nonnull PollableOutputStream stream, @Nullable Pointer buffer, long count)
      Parameters:
      stream - a #GPollableOutputStream
      buffer - a buffer to write data from
      count - the number of bytes you want to write
      Returns:
      the number of bytes written, or -1 on error (including %G_IO_ERROR_WOULD_BLOCK).