Package ch.bailu.gtk.gio
Interface PollableInputStreamInterface.OnReadNonblocking
- Enclosing class:
- PollableInputStreamInterface
- 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
onReadNonblocking
(CallbackHandler __self, PollableInputStream stream, Pointer buffer, long count)
-
Method Details
-
onReadNonblocking
long onReadNonblocking(CallbackHandler __self, @Nonnull PollableInputStream stream, @Nullable Pointer buffer, long count) - Parameters:
stream
- a #GPollableInputStreambuffer
- a buffer to read data into (which should be at least @count bytes long).count
- the number of bytes you want to read- Returns:
- the number of bytes read, or -1 on error (including %G_IO_ERROR_WOULD_BLOCK).
-