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