Schnittstelle BufferedInputStreamClass.OnFill

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

@FunctionalInterface public static interface BufferedInputStreamClass.OnFill
  • Methodendetails

    • onFill

      long onFill(CallbackHandler __self, @Nonnull BufferedInputStream stream, long count, @Nullable Cancellable cancellable)
      Parameter:
      stream - a [class@Gio.BufferedInputStream]
      count - the number of bytes that will be read from the stream
      cancellable - optional [class@Gio.Cancellable] object, `NULL` to ignore
      Gibt zurück:
      the number of bytes read into @stream's buffer, up to @count, or `-1` on error.