Table of Contents

Interface IHashFunction

Namespace
NuGet.Packaging
Assembly
Chocolatey.NuGet.Packaging.dll

Provides incremental hashing.

This is non-private only to facilitate unit testing.

public interface IHashFunction : IDisposable
Inherited Members

Methods

GetHash()

Gets the hash.

Once GetHash is called, no further hash updates are allowed.

string GetHash()

Returns

string

A base64-encoded hash.

Update(byte[], int, int)

Incrementally updates the hash.

void Update(byte[] data, int offset, int count)

Parameters

data byte[]

The data to be included in the hash.

offset int

The offset from which data should be read.

count int

The count of bytes to read.