Checksum

class Checksum(pointer: <Error class: unknown class><<Error class: unknown class>>) : Record

An opaque structure representing a checksumming operation.

To create a new GChecksum, use g_checksum_new(). To free a GChecksum, use g_checksum_free().

Skipped during bindings generation

  • parameter data: guint8

Since

2.16

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion : RecordCompanion<Checksum, <Error class: unknown class>>

Properties

Link copied to clipboard
val glibChecksumPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun copy(): Checksum

Copies a #GChecksum. If @checksum has been closed, by calling g_checksum_get_string() or g_checksum_get_digest(), the copied checksum will be closed as well.

Link copied to clipboard
fun free()

Frees the memory allocated for @checksum.

Link copied to clipboard

Gets the digest as a hexadecimal string.

Link copied to clipboard
fun reset()

Resets the state of the @checksum back to its initial state.