Package ch.bailu.gtk.gio
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.
-
Method Summary
Modifier and TypeMethodDescriptionlong
onWriteFn
(CallbackHandler __self, OutputStream stream, Pointer buffer, long count, Cancellable cancellable)
-
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 writecancellable
- optional cancellable object- Returns:
- Number of bytes written, or -1 on error
-