Table of Contents

Class ChecksumBuilderExtensions

Namespace
Cuemon.Extensions.Data.Integrity
Assembly
Cuemon.Extensions.Data.Integrity.dll

Extension methods for the ChecksumBuilder class.

public static class ChecksumBuilderExtensions
Inheritance
ChecksumBuilderExtensions

Methods

CombineWith<T>(T, byte[])

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this T cb, byte[] additionalChecksum) where T : ChecksumBuilder

Parameters

cb T

The ChecksumBuilder to extend.

additionalChecksum byte[]

An array of bytes containing a checksum of the additional data this instance must represent.

Returns

T

An updated instance of the specified cb of T.

Type Parameters

T

The type of the ChecksumBuilder.

CombineWith<T>(T, double)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this T cb, double additionalChecksum) where T : ChecksumBuilder

Parameters

cb T

The ChecksumBuilder to extend.

additionalChecksum double

A double value containing a checksum of the additional data this instance must represent.

Returns

T

An updated instance of the specified cb of T.

Type Parameters

T

The type of the ChecksumBuilder.

CombineWith<T>(T, short)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this T cb, short additionalChecksum) where T : ChecksumBuilder

Parameters

cb T

The ChecksumBuilder to extend.

additionalChecksum short

An short value containing a checksum of the additional data this instance must represent.

Returns

T

An updated instance of the specified cb of T.

Type Parameters

T

The type of the ChecksumBuilder.

CombineWith<T>(T, int)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this T cb, int additionalChecksum) where T : ChecksumBuilder

Parameters

cb T

The ChecksumBuilder to extend.

additionalChecksum int

An int value containing a checksum of the additional data this instance must represent.

Returns

T

An updated instance of the specified cb of T.

Type Parameters

T

The type of the ChecksumBuilder.

CombineWith<T>(T, long)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this T cb, long additionalChecksum) where T : ChecksumBuilder

Parameters

cb T

The ChecksumBuilder to extend.

additionalChecksum long

An long value containing a checksum of the additional data this instance must represent.

Returns

T

An updated instance of the specified cb of T.

Type Parameters

T

The type of the ChecksumBuilder.

CombineWith<T>(T, float)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this T cb, float additionalChecksum) where T : ChecksumBuilder

Parameters

cb T

The ChecksumBuilder to extend.

additionalChecksum float

A float value containing a checksum of the additional data this instance must represent.

Returns

T

An updated instance of the specified cb of T.

Type Parameters

T

The type of the ChecksumBuilder.

CombineWith<T>(T, string)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this T cb, string additionalChecksum) where T : ChecksumBuilder

Parameters

cb T

The ChecksumBuilder to extend.

additionalChecksum string

A string value containing a checksum of the additional data this instance must represent.

Returns

T

An updated instance of the specified cb of T.

Type Parameters

T

The type of the ChecksumBuilder.

CombineWith<T>(T, ushort)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this T cb, ushort additionalChecksum) where T : ChecksumBuilder

Parameters

cb T

The ChecksumBuilder to extend.

additionalChecksum ushort

An ushort value containing a checksum of the additional data this instance must represent.

Returns

T

An updated instance of the specified cb of T.

Type Parameters

T

The type of the ChecksumBuilder.

CombineWith<T>(T, uint)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this T cb, uint additionalChecksum) where T : ChecksumBuilder

Parameters

cb T

The ChecksumBuilder to extend.

additionalChecksum uint

An uint value containing a checksum of the additional data this instance must represent.

Returns

T

An updated instance of the specified cb of T.

Type Parameters

T

The type of the ChecksumBuilder.

CombineWith<T>(T, ulong)

Combines the additionalChecksum to the representation of this instance.

public static T CombineWith<T>(this T cb, ulong additionalChecksum) where T : ChecksumBuilder

Parameters

cb T

The ChecksumBuilder to extend.

additionalChecksum ulong

An ulong value containing a checksum of the additional data this instance must represent.

Returns

T

An updated instance of the specified cb of T.

Type Parameters

T

The type of the ChecksumBuilder.