Class CharsetConverter
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class CharsetConverter : Object, Converter, Initable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
CharsetConverter
- Implements
- Inherited Members
Constructors
CharsetConverter(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public CharsetConverter(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
CharsetConverter(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected CharsetConverter(CreationData data)
Parameters
dataCreationData
CharsetConverter(CharsetConverterHandle)
protected CharsetConverter(CharsetConverterHandle handle)
Parameters
handleCharsetConverterHandle
Fields
FromCharsetPropertyDefinition
public static readonly Property<string?, CharsetConverter> FromCharsetPropertyDefinition
Field Value
ToCharsetPropertyDefinition
public static readonly Property<string?, CharsetConverter> ToCharsetPropertyDefinition
Field Value
UseFallbackPropertyDefinition
public static readonly Property<bool, CharsetConverter> UseFallbackPropertyDefinition
Field Value
Properties
FromCharset
public string? FromCharset { get; }
Property Value
ToCharset
public string? ToCharset { get; }
Property Value
UseFallback
public bool UseFallback { get; set; }
Property Value
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
Returns
ConvertBytes(Bytes)
[Version("2.82")]
public Bytes ConvertBytes(Bytes bytes)
Parameters
bytesBytes
Returns
GetGType()
public static Type GetGType()
Returns
GetNumFallbacks()
[Version("2.24")]
public uint GetNumFallbacks()
Returns
GetUseFallback()
[Version("2.24")]
public bool GetUseFallback()
Returns
Init(Cancellable?)
[Version("2.22")]
public bool Init(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
New(string, string)
[Version("2.24")]
public static CharsetConverter New(string toCharset, string fromCharset)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed CharsetConverter instance for a given pointer.
public static CharsetConverter NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new CharsetConverter and sets the properties specified by the construct arguments.
public static CharsetConverter NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Reset()
[Version("2.24")]
public void Reset()
SetUseFallback(bool)
[Version("2.24")]
public void SetUseFallback(bool useFallback)
Parameters
useFallbackbool