Converter

interface Converter

GConverter is an interface for streaming conversions.

GConverter is implemented by objects that convert binary data in various ways. The conversion can be stateful and may fail at any place.

Some example conversions are: character set conversion, compression, decompression and regular expression replace.

Skipped during bindings generation

  • parameter inbuf: Array parameter of type guint8 is not supported

Since

2.24

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val gioConverterPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun convertBytes(bytes: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>>

Applies @converter to the data in @bytes.

Link copied to clipboard
open fun reset()

Resets all internal state in the converter, making it behave as if it was just created. If the converter has any internal state that would produce output then that output is lost.