Schnittstelle OutputStreamClass.OnSplice

Umschließende Klasse:
OutputStreamClass
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface OutputStreamClass.OnSplice
  • Methodendetails

    • onSplice

      long onSplice(CallbackHandler __self, @Nonnull OutputStream stream, @Nonnull InputStream source, int flags, @Nullable Cancellable cancellable)
      Parameter:
      stream - a #GOutputStream.
      source - a #GInputStream.
      flags - a set of #GOutputStreamSpliceFlags.
      cancellable - optional #GCancellable object, %NULL to ignore.
      Gibt zurück:
      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.