Package ch.bailu.gtk.gio
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.
-
Method Summary
-
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 @inbufoutbuf
- a buffer to write converted data in.outbuf_size
- the number of bytes in @outbuf, must be at least oneflags
- a #GConverterFlags controlling the conversion detailsbytes_read
- will be set to the number of bytes read from @inbuf on successbytes_written
- will be set to the number of bytes written to @outbuf on success- Returns:
- a #GConverterResult, %G_CONVERTER_ERROR on error.
-