Table of Contents

Class ZlibCompressor

Namespace
Gio
Assembly
Gio-2.0.dll
public class ZlibCompressor : Object, IObject, INotifyPropertyChanged, IDisposable, Converter, IHandle, GTypeProvider
Inheritance
ZlibCompressor
Implements
Inherited Members

Constructors

ZlibCompressor(bool, params ConstructArgument[])

protected ZlibCompressor(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

ZlibCompressor(IntPtr, bool)

protected ZlibCompressor(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

FileInfoPropertyDefinition

public static readonly Property<FileInfo?, ZlibCompressor> FileInfoPropertyDefinition

Field Value

Property<FileInfo, ZlibCompressor>

FormatPropertyDefinition

public static readonly Property<ZlibCompressorFormat, ZlibCompressor> FormatPropertyDefinition

Field Value

Property<ZlibCompressorFormat, ZlibCompressor>

LevelPropertyDefinition

public static readonly Property<int, ZlibCompressor> LevelPropertyDefinition

Field Value

Property<int, ZlibCompressor>

Properties

FileInfo

public FileInfo? FileInfo { get; set; }

Property Value

FileInfo

Format

public ZlibCompressorFormat Format { get; }

Property Value

ZlibCompressorFormat

Level

public int Level { get; }

Property Value

int

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

GetFileInfo()

[Version("2.26")]
public FileInfo? GetFileInfo()

Returns

FileInfo

GetGType()

public static Type GetGType()

Returns

Type

New(ZlibCompressorFormat, int)

[Version("2.24")]
public static ZlibCompressor New(ZlibCompressorFormat format, int level)

Parameters

format ZlibCompressorFormat
level int

Returns

ZlibCompressor

Reset()

[Version("2.24")]
public void Reset()

SetFileInfo(FileInfo?)

[Version("2.26")]
public void SetFileInfo(FileInfo? fileInfo)

Parameters

fileInfo FileInfo