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, 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
TThe ChecksumBuilder to extend.
additionalChecksum
shortAn short 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, 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
TThe ChecksumBuilder to extend.
additionalChecksum
intAn int 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, 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
TThe ChecksumBuilder to extend.
additionalChecksum
longAn long 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, 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
TThe ChecksumBuilder to extend.
additionalChecksum
floatA float 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, 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
TThe ChecksumBuilder to extend.
additionalChecksum
ushortAn ushort 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, 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
TThe ChecksumBuilder to extend.
additionalChecksum
uintAn uint 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, 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
TThe ChecksumBuilder to extend.
additionalChecksum
ulongAn ulong 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.