Interface OutputStreamClass.OnSplice

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.OnSplice
  • Method Details

    • onSplice

      long onSplice(CallbackHandler __self, @Nonnull OutputStream stream, @Nonnull InputStream source, int flags, @Nullable Cancellable cancellable)
      Parameters:
      stream - a #GOutputStream.
      source - a #GInputStream.
      flags - a set of #GOutputStreamSpliceFlags.
      cancellable - optional #GCancellable object, %NULL to ignore.
      Returns:
      a #gssize containing the size of the data spliced, or -1 if an error occurred. Note that if the number of bytes spliced is greater than %G_MAXSSIZE, then that will be returned, and there is no way to determine the actual number of bytes spliced.