Table of Contents

Class Checksum

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class Checksum : BoxedRecord, IEquatable<Checksum>
Inheritance
Checksum
Implements
Inherited Members

Constructors

Checksum(ChecksumOwnedHandle)

public Checksum(ChecksumOwnedHandle handle)

Parameters

handle ChecksumOwnedHandle

Properties

Handle

public ChecksumOwnedHandle Handle { get; }

Property Value

ChecksumOwnedHandle

Methods

Copy()

[Version("2.16")]
public Checksum Copy()

Returns

Checksum

Equals(Checksum?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Checksum? other)

Parameters

other Checksum

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

[Version("2.16")]
public void Free()

GetDigest(Span<byte>, out nuint)

[Version("2.16")]
public void GetDigest(Span<byte> buffer, out nuint digestLen)

Parameters

buffer Span<byte>
digestLen nuint

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetString()

[Version("2.16")]
public string GetString()

Returns

string

New(ChecksumType)

[Version("2.16")]
public static Checksum? New(ChecksumType checksumType)

Parameters

checksumType ChecksumType

Returns

Checksum

Reset()

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

TypeGetLength(ChecksumType)

[Version("2.16")]
public static long TypeGetLength(ChecksumType checksumType)

Parameters

checksumType ChecksumType

Returns

long

Update(Span<byte>)

[Version("2.16")]
public void Update(Span<byte> data)

Parameters

data Span<byte>