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, Int16)

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 Int16

An Int16 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, Int32)

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 Int32

An Int32 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, Int64)

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 Int64

An Int64 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, Single)

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 Single

A Single 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, UInt16)

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 UInt16

An UInt16 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, UInt32)

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 UInt32

An UInt32 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, UInt64)

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 UInt64

An UInt64 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.