Class CharsetConverter
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class CharsetConverter : Object, Converter, Initable, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
CharsetConverter
- Implements
-
- Inherited Members
-
Constructors
CharsetConverter(params ConstructArgument[])
public CharsetConverter(params ConstructArgument[] constructArguments)
Parameters
constructArguments ConstructArgument[]
CharsetConverter(CharsetConverterHandle)
public CharsetConverter(CharsetConverterHandle handle)
Parameters
handle CharsetConverterHandle
Fields
FromCharsetPropertyDefinition
public static readonly Property<string?, CharsetConverter> FromCharsetPropertyDefinition
Field Value
- Property<string, CharsetConverter>
ToCharsetPropertyDefinition
public static readonly Property<string?, CharsetConverter> ToCharsetPropertyDefinition
Field Value
- Property<string, CharsetConverter>
UseFallbackPropertyDefinition
public static readonly Property<bool, CharsetConverter> UseFallbackPropertyDefinition
Field Value
- Property<bool, CharsetConverter>
Properties
FromCharset
public string? FromCharset { get; }
Property Value
- string
ToCharset
public string? ToCharset { get; }
Property Value
- string
UseFallback
public bool UseFallback { get; set; }
Property Value
- bool
Methods
Convert(Span<byte>, Span<byte>, ConverterFlags, out nuint, out nuint)
[Version("2.24")]
public ConverterResult Convert(Span<byte> inbuf, Span<byte> outbuf, ConverterFlags flags, out nuint bytesRead, out nuint bytesWritten)
Parameters
inbuf Span<byte>
outbuf Span<byte>
flags ConverterFlags
bytesRead nuint
bytesWritten nuint
Returns
- ConverterResult
ConvertBytes(Bytes)
[Version("2.82")]
public Bytes ConvertBytes(Bytes bytes)
Parameters
bytes Bytes
Returns
- Bytes
GetGType()
public static Type GetGType()
Returns
- Type
GetNumFallbacks()
[Version("2.24")]
public uint GetNumFallbacks()
Returns
- uint
GetUseFallback()
[Version("2.24")]
public bool GetUseFallback()
Returns
- bool
Init(Cancellable?)
[Version("2.22")]
public bool Init(Cancellable? cancellable)
Parameters
cancellable Cancellable
Returns
- bool
New(string, string)
[Version("2.24")]
public static CharsetConverter New(string toCharset, string fromCharset)
Parameters
toCharset string
fromCharset string
Returns
- CharsetConverter
Reset()
[Version("2.24")]
public void Reset()
SetUseFallback(bool)
[Version("2.24")]
public void SetUseFallback(bool useFallback)
Parameters
useFallback bool