GMimeFilterChecksum: GMime 3.0 Reference Manual

## GMimeFilterChecksum GMimeFilterChecksum — Calculate a checksum |

## Functions

GMimeFilter * | g_mime_filter_checksum_new ()
size_t | g_mime_filter_checksum_get_digest ()

## Types and Values

struct | GMimeFilterChecksum

## Object Hierarchy

        GObject
        ╰── GMimeFilter
            ╰── GMimeFilterChecksum

## Description

Calculate a checksum for a stream.

## Functions

### g_mime_filter_checksum_new ()

    GMimeFilter *
    g_mime_filter_checksum_new (GChecksumType type);

Creates a new checksum filter.

#### Parameters

type | the type of checksum |

#### Returns

a new GMimeFilterChecksum filter.

### g_mime_filter_checksum_get_digest ()

    size_t
    g_mime_filter_checksum_get_digest (GMimeFilterChecksum *checksum,
                                       unsigned char *digest,
                                       size_t len);

Outputs the checksum digest into `digest` .

#### Parameters

checksum | checksum filter object |
digest | the digest buffer |
len | the length of the digest buffer |

#### Returns

the number of bytes used of the `digest` buffer.

## Types and Values

### struct GMimeFilterChecksum

    struct GMimeFilterChecksum;

A filter for calculating the checksum of a stream.

#### Members

## See Also

GMimeFilter