Schnittstelle PollableInputStreamInterface.OnReadNonblocking

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

@FunctionalInterface public static interface PollableInputStreamInterface.OnReadNonblocking
  • Methodendetails

    • onReadNonblocking

      long onReadNonblocking(CallbackHandler __self, @Nonnull PollableInputStream stream, @Nullable Pointer buffer, long count)
      Parameter:
      stream - a #GPollableInputStream
      buffer - a buffer to read data into (which should be at least @count bytes long).
      count - the number of bytes you want to read
      Gibt zurück:
      the number of bytes read, or -1 on error (including %G_IO_ERROR_WOULD_BLOCK).