Interface BufferedInputStreamClass.OnFill

Enclosing class:
BufferedInputStreamClass
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 BufferedInputStreamClass.OnFill
  • Method Details

    • onFill

      long onFill(CallbackHandler __self, @Nonnull BufferedInputStream stream, long count, @Nullable Cancellable cancellable)
      Parameters:
      stream - a #GBufferedInputStream
      count - the number of bytes that will be read from the stream
      cancellable - optional #GCancellable object, %NULL to ignore
      Returns:
      the number of bytes read into @stream's buffer, up to @count, or -1 on error.