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
TThe 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
ofT
.
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
TThe ChecksumBuilder to extend.
additionalChecksum
DoubleA Double value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cb
ofT
.
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
TThe ChecksumBuilder to extend.
additionalChecksum
Int16An Int16 value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cb
ofT
.
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
TThe ChecksumBuilder to extend.
additionalChecksum
Int32An Int32 value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cb
ofT
.
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
TThe ChecksumBuilder to extend.
additionalChecksum
Int64An Int64 value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cb
ofT
.
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
TThe ChecksumBuilder to extend.
additionalChecksum
SingleA Single value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cb
ofT
.
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
TThe ChecksumBuilder to extend.
additionalChecksum
StringA String value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cb
ofT
.
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
TThe ChecksumBuilder to extend.
additionalChecksum
UInt16An UInt16 value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cb
ofT
.
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
TThe ChecksumBuilder to extend.
additionalChecksum
UInt32An UInt32 value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cb
ofT
.
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
TThe ChecksumBuilder to extend.
additionalChecksum
UInt64An UInt64 value containing a checksum of the additional data this instance must represent.
Returns
- T
An updated instance of the specified
cb
ofT
.
Type Parameters
T
The type of the ChecksumBuilder.