Interface OutputStreamClass.OnWriteFn

Enclosing class:
OutputStreamClass
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 OutputStreamClass.OnWriteFn
  • Method Details

    • onWriteFn

      long onWriteFn(CallbackHandler __self, @Nonnull OutputStream stream, @Nullable Pointer buffer, long count, @Nullable Cancellable cancellable)
      Parameters:
      stream - a #GOutputStream.
      buffer - the buffer containing the data to write.
      count - the number of bytes to write
      cancellable - optional cancellable object
      Returns:
      Number of bytes written, or -1 on error