Class ZlibDecompressor
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class ZlibDecompressor : Object, Converter, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
ZlibDecompressor
- Implements
- Inherited Members
Constructors
ZlibDecompressor(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 ZlibDecompressor(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
ZlibDecompressor(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ZlibDecompressor(CreationData data)
Parameters
dataCreationData
ZlibDecompressor(ZlibDecompressorHandle)
protected ZlibDecompressor(ZlibDecompressorHandle handle)
Parameters
handleZlibDecompressorHandle
Fields
FileInfoPropertyDefinition
public static readonly Property<FileInfo?, ZlibDecompressor> FileInfoPropertyDefinition
Field Value
FormatPropertyDefinition
public static readonly Property<ZlibCompressorFormat, ZlibDecompressor> FormatPropertyDefinition
Field Value
Properties
FileInfo
public FileInfo? FileInfo { get; }
Property Value
Format
public ZlibCompressorFormat Format { get; }
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
GetFileInfo()
[Version("2.26")]
public FileInfo? GetFileInfo()
Returns
GetGType()
public static Type GetGType()
Returns
New(ZlibCompressorFormat)
[Version("2.24")]
public static ZlibDecompressor New(ZlibCompressorFormat format)
Parameters
formatZlibCompressorFormat
Returns
NewFromPointer(nint, bool)
Creates a new managed ZlibDecompressor instance for a given pointer.
public static ZlibDecompressor NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new ZlibDecompressor and sets the properties specified by the construct arguments.
public static ZlibDecompressor NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Reset()
[Version("2.24")]
public void Reset()