GMime.FilterChecksum

g GMime.Filter GMime.Filter GMime.FilterChecksum GMime.FilterChecksum GMime.Filter->GMime.FilterChecksum GObject.Object GObject.Object GObject.Object->GMime.Filter

Subclasses:

None

Methods

Inherited:

GMime.Filter (6), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (type)

get_digest (digest)

get_string ()

Virtual Methods

Inherited:

GMime.Filter (4), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

checksum

GLib.Checksum

r

The checksum context

parent_object

GMime.Filter

r

parent GMime.Filter

Class Details

class GMime.FilterChecksum(**kwargs)
Bases:

GMime.Filter

Abstract:

No

Structure:

GMime.FilterChecksumClass

A filter for calculating the checksum of a stream.

classmethod new(type)
Parameters:

type (GLib.ChecksumType) – the type of checksum

Returns:

a new GMime.FilterChecksum filter.

Return type:

GMime.Filter

Creates a new checksum filter.

get_digest(digest)
Parameters:

digest (bytes) – the digest buffer

Returns:

the number of bytes used of the digest buffer.

Return type:

int

Outputs the checksum digest into digest.

get_string()
Returns:

the hexadecimal representation of the checksum. The returned string should be freed with GLib.free() when no longer needed.

Return type:

str

Outputs the checksum digest as a newly allocated hexadecimal string.