Interface ConverterIface.OnConvert

Enclosing class:
ConverterIface
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 ConverterIface.OnConvert
  • Method Details

    • onConvert

      int onConvert(CallbackHandler __self, @Nonnull Converter converter, @Nullable Pointer inbuf, long inbuf_size, @Nullable Pointer outbuf, long outbuf_size, int flags, @Nonnull Int64 bytes_read, @Nonnull Int64 bytes_written)
      Parameters:
      converter - a #GConverter.
      inbuf - the buffer containing the data to convert.
      inbuf_size - the number of bytes in @inbuf
      outbuf - a buffer to write converted data in.
      outbuf_size - the number of bytes in @outbuf, must be at least one
      flags - a #GConverterFlags controlling the conversion details
      bytes_read - will be set to the number of bytes read from @inbuf on success
      bytes_written - will be set to the number of bytes written to @outbuf on success
      Returns:
      a #GConverterResult, %G_CONVERTER_ERROR on error.